Free Flash Tutorials

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash Tutorial - Target Paths

 

Free Flash Tutorial

 


Page 7     << Previous    1  2  3  4  5  6  7  8   Next >>        >>   Webwasp Mates

 

Step Seven: The First Button

  1. Place a button on the main stage. Either create a button or drag it onto the stage from the Common Library (Window > Common Libraries > Buttons).

    Note: If you take a button from the Common Button Library avoid Knobs, Faders and Component buttons as they work differently.

  2. Right click on the button and select: Actions

  3. Make sure the action panel is set to: Normal
    You do this by clicking on the panel menu button ( ) which is just under the cross on the top right hand side of the action panel.


  4. Click on the: Plus sign > Actions > Movie Control > Goto

  5. In the options select the radio button: Go To and Stop
    Your action script should look like this:

    on (release) {
            
    gotoAndStop(1);
    }


  6. Change the action panel to: Expert mode
    You do this by clicking on the panel menu button ( ).

  7. Type the path to the instance that you want to stop animating in front of the gotoAndStop. Your script should now look like this:

    on (release) {
       
    _root.webwasp.web.gotoAndStop(1);
    }


    Note: Don't forget to type the dots and never type spaces.

    The path works like this: _root.myInstanceName1.myInstanceName2.gotoAndStop(1);


  8. Go back to normal mode. You do this as a check because if you have made an error in the ActionScript syntax Flash will not allow you to go back to normal mode and will display an error message.

  9. Test your movie: Control > Test Movie

    Make sure you click on the button to see if the animation stops.

         

Page 7     << Previous    1  2  3  4  5  6  7  8   Next >>        >>   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

79549 visitors to this page since Jan 04

 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.