This is a tutorial to help support As3:Main ! Here is the step-by-step tutorial!
1. Open Adobe Flash
2. Click on Actionscript 3.0 under the "Create New" branch
3. Create the graphic for your button
4. Select the entire thing and right-click then select "Convert to Symbol..."
5. Put anything for the name (for now I will call this button1)
6. Register the point in the middle
7. Make sure the type is Button.
8. Give button1 the instance name of anything!(we will refer to it from now on as "Btn1")
9. Make a new layer and name it Actions
10. Go to the actions panel (Window/Actions)
11. Type the following
import flash.events.MouseEvent;
Btn1.addEventListener(MouseEvent.Event, anythinghere);
function anythinghere(event:MouseEvent):void{
gotoAndPlay(2);
}
12. Add a blank keyframe
13. go to the actions layer and on both frame add this to the coding:
stop();
14. Test the move (ctrl + enter)
15. You have a working button! Hope I could help!