Playing a Flash Movie Backwards

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash - Playing a Flash Movie Backwards

 

Free Flash Tutorial


Step 10    <<   Previous      Intro   1   2   3   4   5   6   7   8   9   10    >>       >>   Webwasp Mates

 

Step Ten: Play Button Actions

  1. Move the play head to frame 1.
  2. Right click on the play button on the right, select: Actions
  3. Make sure the Actions panel is set to Normal.
    You do this by clicking on the side menu button ( ). Select Normal.
  4. Select: > Actions > Movie Control > Play
    The following actionscript will be attached to the button.

        on (release) {
            
    play();
        }


    We will now add a line which will switch the controller off. This is important, because is the viewer clicks the play button before the car gets back to frame 1, the car will play, go forwards, the controller will instruct the car to go back and it will start to reverse again.
  5. You may want to save and test the movie at this stage. Make sure you click the buttons before the car gets to the ends. The reverse button should always work, the play button will not, unless the car has got back to frame1.
  6. If you have closed the Actions panel, right click on the play button, select: Actions
  7. Click on the line of script: play();
    This selects the line and ensures that the next line of script goes in the correct place.
  8. Select: > Actions > Movie Control > Goto
  9. In the options above select: Goto and Stop
  10. Go to expert mode.
  11. In front of the gotoAndStop type: _root.control.

    Your actionscript should look like this:

        on (release) {
            
    play();
            
    _root.control.gotoAndStop(1);
        }

  12. Your movie is now ready to save and test!

Other Flash Movies that use Controller Movie Clips

Objects move relative to mouse   First 8 samples on the page have Controller MCs
Jigsaws
  Last 3 jigsaws on the page have Controller MCs

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 10    <<   Previous      Intro   1   2   3   4   5   6   7   8   9   10    >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.