Make MC Button from a MovieClip

March 20th, 2007 by Slav

There are several ways to create buttons in Flash.  Some people will create a button class, where they’ll define all the methods for rollovers , active and disabled states and associate it with the particular MovieClip symbol in the library. The other will create a Button instance and place the graphics on the timeline under frames with labels “over”, “down” etc.

Not everybody is aware though, you can make any ordinary MovieClip to behave like Button type of symbol (i.e. going automatically to differently labeled frames depending on the mouse events). All needed is following :

  1. Your movie clip must have specifically named frame labels : “_up”,”_over”,”_down”,”_hit”
  2. Your movie clip must have some methods defined for it, such as onRollOver, onRelease ..etc.

I have written this extension to automate the process of creating the frames, label names and adding stop frames for it. Read the rest of this entry »

Posted in AS2, JSFL | 2 Comments »

Play timeline backward

March 13th, 2007 by Slav

There are times where you would like for an animation on a timeline to be played backwards. This class does just that.

It strength is in it’s simplicity. To use it, simply pass the reference of a movie clip instance to it and from that moment on it will play the movie clip timeline backward. Read the rest of this entry »

Posted in AS2, flash | 4 Comments »