Forum Topic: Menu Page Trouble

(46 views • 1 reply)

This topic is 1 page long.

<< < > >>
Sad

SuperSpark

Reply To Post Reply & Quote

Posted at: 7/3/09 02:09 PM

SuperSpark NEUTRAL LEVEL 06

Sign-Up: 04/02/09

Posts: 48

Hi! I have a menu for my flash with a play button and 2 extra buttons leading to extra pages. When push play, I tell it to play the rest of the movie and have a layer which tween fades everything. On the last frame of the tween fade I put Actionsctipt:

gotoAndPlay(nextScene);

I put the 2 frames with the extra pages after the fade, however when I test play the movie and hit play, it shows the 2 pages after the fade and goes on to the next scene like usual, ignoring the above ActionScript. Is there a way to prevent this? Also, what's the code to link my buttons to my extra pages?


Happy

chesster415

Reply To Post Reply & Quote

Posted at: 7/3/09 05:02 PM

chesster415 NEUTRAL LEVEL 12

Sign-Up: 01/19/08

Posts: 82

A simple way to do this is to label your frames then use

gotoAndPlay("LabelOfFrameToPlay")

with the quotes. Then you don't have to change the frame numbers all the time to add or delete frames. If your frame is in a different scene you need to either specify the scene by number

gotoAndPlay(2,"LabelOfFrameToPlay")
//Where 2 is the scene to play

or

gotoAndPlay(nextScene(),"LabelOfFrameToPlay")
//'cause nextScene() is a function not a property.

hope that helps.

A bad analogy is like a leaky screwdriver.


All times are Eastern Standard Time (GMT -5) | Current Time: 12:44 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!