Vectorials
Flash Perfection
3D Lessons
Tutorialkit
Markup Tutorials
Learn PHP
network
adv banner
Flash & Swish  Home Flash & Swish Swish Tutorials On Mouse Click, Play/Stop/Rewind Movie
rss

On Mouse Click, Play/Stop/Rewind Movie

Author: garywee More by this author


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: www.swish-db.com

Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

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