Home / Tutorials / Navigation / Menu that Swings In /

Flash Tutorials

Menu that Swings In - Step Nine: Making the Menu Buttons Work

Posted by : PhilS on Jul 31, 2008

 

5.0/5

Although the Menu should now be working correctly the Buttons don't actually function. This last section will make them function correctly

1.Open MC1 by double clicking on: Movie Clip 1

2. Select: Button 1

Tip: In the top left of the Actions Panel you must be able to read:

3. Place the following code on: Button 1

on (release) {
  _root.gotoAndStop(10);
}

4. Place the following code on: Button 2

on (release) {
  _root.gotoAndStop(20);
}

5. Place the following code on:** Button 3**

on (release) {
  _root.gotoAndStop(30);
}

6. Place the following code on:** Button 4**

on (release) {
  _root.gotoAndStop(40);
}

7. Place the following code on: Button 5

on (release) {
  _root.gotoAndStop(50);
}

8. Place the following code on: Button 6

// Note this goes back to frame 2 which is the first real frame or Home Page
on (release) {
  _root.gotoAndStop(2);
}

9. Test Your Movie: Control - Test Movie (Ctrl + Enter)

10. Place the Mouse over the: Menu bar

Note: All your Buttons should now work.

11. Close the Test Window:

Your Movie should have a Menu that swings in with buttons that go to different locations in your Flash Movie. I hope you found this tutorial useful and easy to follow.

Source: http://www.webwasp.co.uk/tutorials/b04-menu-swing/index.php

no comment

Add comment

Please login to post comments.