I have an animation that I want to function as button and I want it to play the animation when there is a rollover event. I have no clue how to do this.
So far I have this:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class optbtn
{
public function optbtn()
{
//
}
}
}
in your constructor would be where I would start, although you could add the listeners in a another function called from your constructor instead.
Class names are typically capitaized, ie Optbtn rather than your optbtn