Someone help!

can this be done, or am I missing something…

on (release) {
gotoAndPlay(“profile”, 1);
gotoAndPlay(“news return”, 1);
}

I want it to play one scene (news return) then when that scene ends go straight into the other scene (profile) all in the same action

it doesn’t work, I’m sure somethings wrong with the code.

help.

Play your one scene with the button, then on the last frame of that scene add the gotoAndPlay to your other scene on the frame.

yeh i’ve been doing that but I need to do it so many times that scene size is ridiculous, up to about 35 scenes.

can I achieve a double action on a button??

thanx

you can achieve a double action on a button, but both those actions happen at the same time, and with scenes, you can’t do that.

35 scenes is too extreme dude, you need to find a way to cut that back. Is this for a site or a cd-rom?

yeh my first site, gotta finish this thing already…

getting a double action is the only way I can see to do it.

what’s hapenning is that, my menu…

NEWS_PROJECTS_CONTACT_AWARDS_PROFILE

when i click on NEWS the news box slides across,
then if i click on AWARDS while the news box is still out, I want the
NEWS box to slide back (another scene) then activate the AWARDS box to slide across (another scene) all on the one click.

at the moment i have using another scene called (news return) which has an action on the last frame telling it to go AWARDS after NEWS box slides back.(as you suggested)

it works fine, just the way I want it to, but do that for each menu button your left with a hell of a lot of scenes, and it’s slowing my tweens down.

Well why don’t you have <B>1</B> scene for each section (if you are going to use scenes, I for one recommend loadMovie()).

You can play the tween in motion, then have a stop action where the content shows.

Then you can have the tween out motion which you play from your button.

At the last frame of your scene you add this action…

gotoAndPlay(_root.changeScene, 1);

Now on your button you will do this…

on (release){
_root.changeScene = "sceneName"
_root.gotoAndPlay("outSlide");
}

This assumes you have a variable changeScene which you can define the name of your scene (in double quotes) then use that for your gotoAndPlay action on the last frame. Then the _root.gotoAndPlay(“outSlide”) assumes that the frame that starts your slide out animation has the frame label “outSlide” (no quotes).

Your button will be pressed, registering the changeScene variable with the scene name you want to change to, then it will play your slide out animation, then when the last frame hits, it will take the name in your changeScene variable and play that scene.

In theory at least, I have never tried it, but I don’t see why it won’t work.

Also, in the end (even though I don’t like using scenes) this takes you from like 35 scenes to about 5 scenes all together.

thanks man, I think i’ve worked out a similar way to do it, i’ll need a while to get my head around that though, I’ve only be on flash for a couple of weeks so I still konw very little.

thanks for your input, i’ll see if this works.

No problem. I hope it was a good push in the right direction at least :slight_smile:

Good Luck :beam:!