how to use Actionscript 3.0 to control Flasheff June 20, 2009 10:31PM | Registered: 14 years ago Posts: 1 |
Re: how to use Actionscript 3.0 to control Flasheff June 22, 2009 08:16AM | Admin Registered: 15 years ago Posts: 405 |
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()
}
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.