Flash Tutorials: The History Button

Home • Members Tutorials Forum iSnapChat Contact Us 

 


Flash Tutorials

   

Tutorial - Browser Back Buttons used with Flash

Free Flash Tutorial

Step 1    <<   Previous      Intro   1   2   3   4   5     Next   >>      

 

Step One: Creating the Buttons

  1. Open up a: Flash Movie
  2. Place on the Main Stage a set of: 6 Buttons
  3. Select the first button and place the following code:
  4. on (press) {
       // Call the java script command on the web page
       getURL("1.html", "history frame");
       // Set the page number
       _root.page = 1;
       // Tell the movie clip where to go to and stop in the time line
       _root.Movie.gotoAndStop("f1");
    }

  5. Place the same code on each of the other buttons but change ALL the values 1 to 2 for the second button and to 3 for the third button etc.
  6. Code for the second button:

    on (press) {
       // Call the java script command on the web page
       getURL("2.html", "history frame");
       // Set the page number
       _root.page = 2;
       // Tell the movie clip where to go to and stop in the time line
       _root.Movie.gotoAndStop("f2");
    }

         

Step 1    <<   Previous      Intro   1   2   3   4   5     Next   >>      


24559 visitors to this page since 31 May 07 •

Phil Schulz's Facebook Profile
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend: Click here

 Top of Page HomeMembers Tutorials Forum iSnapChat 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.