The Blog

Simple scroller for flash textboxes

In Flash, textboxes are of 3 types namely – Static, Dynamic & Input. The size of Dynamic/Input text varies depending on the source file/user input and hence may require the use of scrollers. Continue Reading →

Creating a simple content slider (AS2 )

I used this technique to create a simple video interface, with thumbnails for each video which had to slide horizontally.

I also needed to stop my carousel movieclip to exit the stage.

Continue Reading →

How to get a button to stay down in Flash, AS2

Rollover buttons have become a standard in web pages because they provide an interactive way to guide the users through the website. For example, a website can remind the user of the current page simply by leaving a button in the same state as when it was pressed. When you convert an image to a button symbol in Flash CS3, Flash automatically provides rollover frames for the up, over, down and hit stages of buttons. Unfortunately, Flash assumes that you want the button to return to its original state after the button has been pressed. You can still create this effect by converting the button to a movie clip symbol rather than a button symbol. By entering a few simple codes from Actionscript 2.0, your button will remain in the down state informing the user of the current page.

Continue Reading →

Run an external executable file (.exe) from your flash

Ok, so you have a folder with a flash file in it plus another totally independent .exe file.  How do you create a script that will run the exe file when you press a button inside the flash movie?

Continue Reading →

Close flash window button

This should be useful when you publish your work as an executable file and, in some point you want the window to close. Continue Reading →

Manage depth with ActionScript 3

Really quick and easy tutorial to see how to manage depth with actionscript 3. Continue Reading →

Detect collision between two objects

Few lines of code that cover the technique on how you can detect collision between two objects with ActionScript 3.

Continue Reading →

Endless scrolling background in AS3

In this tutorial you will learn how to create an endless scrolling background in Actionscript 3 where an image will continue looping. I have used an image of some buildings for this tutorial, but any image will work.

Continue Reading →

Specifying a Document Class

In general, it is a good idea to keep all of your code away from the timeline in Flash. To put it differently, it is a bad idea to write code on the timeline unless you really cannot avoid it. The main reason to avoid the timeline for code is that it is cleaner to separate your code from the more visual/animation-centric content that your timeline is really designed for.

Continue Reading →

Pause a movieclip in AS2

The easiest way to pause a movieclip inside your flash without affecting the rest of the stage is written few rows below.

You just have to enter your movieclip (double click it), create a new layer called “actions” or whatever you like to name it and paste the code on the frame you want your movieclip to pause.

Continue Reading →