How to Make a Play Button for an Animation in Adobe Flash Cs
Draw a button by drawing a rectangle or you can use one from Windows->Common Libraries->Buttons., Use Text tool to write "Play" or anything you want above the rectangle., Select both text box and rectangle and convert it to symbol by Right...
Step-by-Step Guide
-
Step 1: Draw a button by drawing a rectangle or you can use one from Windows->Common Libraries->Buttons.
If you'll choose button from common libraries, then skip following steps until you reach at Step-7. -
Step 2: Use Text tool to write "Play" or anything you want above the rectangle.
The text must be static text. ,, (not movieclip, not graphic, button) , This will take you to a new page where there will be another set of empty frames and a bar at the top which also says scene 1 and the name of your button. ,,,, stop(); Due to this statement animation will stop at that frame. , This takes you to the Action panel. , on(release){ nextFrame(); } on(release) means on release of your mouse click from the button the next statement or block will invoke. { starts a block . nextFrame(); means go to the next frame.
Instead of nextFrame(), you can put gotoAndStop(frame you want to go) and the } means end of block or function. , Select File->Publish to publish your work. -
Step 3: Select both text box and rectangle and convert it to symbol by Right click->Convert to symbol.
-
Step 4: Name it Playbutton or something you want
-
Step 5: select middle point as registration point and select Button.
-
Step 6: Double click your newly made button in the stage.
-
Step 7: On the second frame (over)
-
Step 8: make a new keyframe and draw what it will look like when you roll over it.
-
Step 9: Press Scene 1 on the top bar and move your button to place it anywhere on the stage.
-
Step 10: Select the current frame (which contains the button) and press F9.
-
Step 11: Type or copy and paste below action script in Action panel.
-
Step 12: Click the button from the stage and press F9.
-
Step 13: Copy and paste this script.
-
Step 14: Go to Control->Test movie to test your work.
Detailed Guide
If you'll choose button from common libraries, then skip following steps until you reach at Step-7.
The text must be static text. ,, (not movieclip, not graphic, button) , This will take you to a new page where there will be another set of empty frames and a bar at the top which also says scene 1 and the name of your button. ,,,, stop(); Due to this statement animation will stop at that frame. , This takes you to the Action panel. , on(release){ nextFrame(); } on(release) means on release of your mouse click from the button the next statement or block will invoke. { starts a block . nextFrame(); means go to the next frame.
Instead of nextFrame(), you can put gotoAndStop(frame you want to go) and the } means end of block or function. , Select File->Publish to publish your work.
About the Author
Pamela Harvey
Specializes in breaking down complex practical skills topics into simple steps.
Rate This Guide
How helpful was this guide? Click to rate: