how to use Actionscript 3.0 to control Flasheff

Posted by davisel 
how to use Actionscript 3.0 to control Flasheff
June 20, 2009 10:31PM
I really like most of the animations but I need to be able to control them using Actionscript.
How is that done?
Say if I want one to start and stop on click....

Thanks...
Re: how to use Actionscript 3.0 to control Flasheff
June 22, 2009 08:16AM
Here is a small example:
StartButton and StopButton are 2 buttons on the stage.
FlashEffComponentInstanceName is the instance name of the component.

StartButton.addEventListener(MouseEvent.CLICK,function1);

public function1(s:MouseEvent):void {
FlashEffComponentInstanceName.show()
}
StopButton.addEventListener(MouseEvent.CLICK,function2);

public function2(s:MouseEvent):void {
FlashEffComponentInstanceName.removeEffect()
}
Sorry, you do not have permission to post/reply in this forum.