Our Swish tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Swish Tutorials On Mouse Click, Play/Stop/Rewind Movie

On Mouse Click, Play/Stop/Rewind Movie


The following steps will be based on the preview above: (Assuming knowledge of creating Buttons)

Step:

You are in Scene 1 timeline. Steps 1-6 are done in Scene 1 timeline

1. Create a new movie with dimension 300x100

2. Insert text "Welcome to swish-db.com"

3. Under Transform Panel (on the right), select "Center left". X=5, Y=50

4. Place a "Place" at frame 0

5. Insert "Move" action in frame 1. Under Move Settings, change duration to "50".

Click on "Preview Frame", under Transform panel, select "Center Right". X=295, Y=50

6. Highlight the text under Layout Panel, Right Click >> Grouping >> Group as sprite.

You should be in sprite timeline. Steps 7-8 are done in sprite timeline

7. Using Sprite panel (on the right), enter "Movie" under name column (renaming sprite).

8. Place a "Stop" at frame 0 of "Movie" timeline.

Back to Scene 1 timeline. Steps 9-16 are done in Scene 1 timeline

9. Place a "Stop" at frame 0.

10. Place a "Tell Target" at frame 1. Enter "/Movie" and add a "Goto Frame" Action, Check "Next" and uncheck "Play" box.

11. Place a "Goto Frame" at frame 2. Add "Goto Frame" Action, Checked both "Previous" and "Play".

12. Repeat step 10 on frame 4. But Check "Previous" and uncheck "play"

13. Repeat Step 11 on frame 5. Must be exactly the same.

14. Create "Play" button with action >> On(Released) >> Goto Frame 1

15. Create "Rewind" Button with action >> On(Released) >> Goto Frame 4

16. Create "Stop" Button with action >> On(Released) >> Stop

Done! You should see the movie same as preview above.



Author's URL: garywee
Final results of our readers
New!
Passed through all the steps? Share your result!
Your result will be premoderated.
Please make sure you choose the right image.
 
 



Captcha

*Required fileds
Our Swish tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website. More Swish Tutorials: Featured Materials | Fresh Materials | More Swish Tutorials at FlashPerfection.com

No comments yet...
Add comments to "On Mouse Click, Play/Stop/Rewind Movie"

Captcha