Intro/Outro in the same swf

[FONT=Tahoma]Hi guys,

One small quetion, how can i make something like a transition (intro/outro) in the same .swf. For exemple i have 3 buton, and when i press btn1 the first animation plays, but at frame 10 it’s stoping. And if i press btn3 i want to play first animation (from frame 11 to frame 20) and then to jump to frame 40 and play until frame 50 where i have the stop.

| >-----1[/FONT][FONT=Tahoma]-----> / | >[/FONT][FONT=Tahoma]-----2[/FONT][FONT=Tahoma]-----> / | >[/FONT][FONT=Tahoma]-----3[/FONT][FONT=Tahoma]*-----> /

> = keyframe
1*,2*,3* = stop();
| = starts the animation;
/ = ends the animation;

:slight_smile: I hope you understang what i wanted to do :slight_smile:

P.S. I’m on a notebook and flash+photoshop runs very slow, sorry for the draq!
[/FONT]

could you post a fla i think it would be easy to do but i dont quite know exactly what you want - sorry its late :tired:

OK here it is a quick made fla :slight_smile: the idea it is when i click 3 i want to play the outro for 1 and then go and play the intro for 3.

i’m using fl8

here it is 2k4 fla

thanks i am using mx2004 - will download and check it out…

ok i hope this is what you want…i used frame labels, then set a targetframe variable, so that when the “out” of any animation was done i could just put

gotoAndPlay(targetframe); and it would go and play the relevant “in” animation.

thanks man, that was! you rock!:p:

no problems :pleased:

I tried to put the buttons in another mc but it doesnt work.
I wrote :
on (release) {
_root.trans.targetframe = “threeIn”;
play();
}

I don’t want to have the buttons in the same mc. What should i do ?

no matter what mc your button is in if you use


on (release) {
	_root.targetframe = "oneIn";
	_root.play();
}

it will work. also note that in between transitions the buttons are exchanged for graphics (so you cant click during a transition).

Ah, it was that simple! Thanks!

no worries glad to help :thumb2: