- actions
- stop button
- play button
Create buttons on each layer
Give them instance names
Add action Scripting to them
*****
you will need to replace the items in hot pink with your button instance name (from properties window) and your function name (you make this up!)...
*****
yourButtonsInstanceName
.addEventListener(MouseEvent.CLICK, functionname);function functionname(event:MouseEvent):void
{
stop();
}
yourButtonsInstanceName
.addEventListener(MouseEvent.CLICK, functionname);function functionname(event:MouseEvent):void
{
play();
}
you will need to replace the items in hot pink with your button instance name (from properties window) and your function name (you make this up!)...
step by step instructions here...
No comments:
Post a Comment