# Intro/Outro in the same swf

**URL:** <https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442>\
**Category:** flash\
**Created:** [April 13, 2006, 12:20pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442 "2006-04-13T12:20:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [April 13, 2006, 12:20pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/1 "2006-04-13T12:20:04Z")

</div>

[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;

🙂 I hope you understang what i wanted to do 🙂

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

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 13, 2006, 1:19pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/2 "2006-04-13T13:19:41Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [April 13, 2006, 1:30pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/3 "2006-04-13T13:30:46Z")

</div>

> [@matthewjumps](#):
>
> 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 🙂 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

---

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [April 13, 2006, 1:31pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/4 "2006-04-13T13:31:52Z")

</div>

here it is 2k4 fla

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 13, 2006, 3:47pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/5 "2006-04-13T15:47:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 13, 2006, 3:58pm UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/6 "2006-04-13T15:58:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [April 14, 2006, 7:44am UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/7 "2006-04-14T07:44:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 14, 2006, 8:05am UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/8 "2006-04-14T08:05:22Z")

</div>

no problems :pleased:

---

<div class="post-metadata">

**Author:** ![tekoer](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tekoer](https://forum.kirupa.com/u/tekoer)\
**Post date:** [April 19, 2006, 6:42am UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/9 "2006-04-19T06:42:23Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 20, 2006, 2:35am UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/10 "2006-04-20T02:35:32Z")

</div>

no matter what mc your button is in if you use

```auto

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).

---

<div class="post-metadata">

**Author:** ![tekoer](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tekoer](https://forum.kirupa.com/u/tekoer)\
**Post date:** [April 21, 2006, 5:07am UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/11 "2006-04-21T05:07:36Z")

</div>

Ah, it was that simple! Thanks!

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 23, 2006, 6:07am UTC](https://forum.kirupa.com/t/intro-outro-in-the-same-swf/185442/12 "2006-04-23T06:07:41Z")

</div>

no worries glad to help :thumb2:
