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.