[MX AS | Noo-B] Transitions and Tell Target

Ok, to help reduce the number of flames I’ll likely get, I DID READ THE TUTORIAL on this site…and it works. However, I’m trying to extend the practice a little bit.

I have a series of buttons that will cause transitions of certain movie clips in my main timeline. However, I’m trying to do two transitions, within the SAME movie clip, in a specific order.

[indent][color=darkred]on (release) {

  tellTarget ("/side_menu") {
               gotoAndPlay ("Splash Out");                   [/color]

[color=darkred] gotoAndPlay (“Contact In”);[/color]

[color=darkred] }[/color]
[color=darkred]}[/color]

[/indent]The result of the following code is that it skips playing “Splash Out” and goes straight to “Contact In”.

I can’t hardcode the final frame of “Splash Out” to play “Contact In” because what occurs after this isn’t always the same. So what’s a Noo-B to do?

–Bluewing

I’m no expert but maybe at the end of “splash out” you could set a flag, like on the last frame you could say “flag = 1”;

Then you could change your on release statement to say gotoAndPlay(“splash out”); IF flag==1 gotoAndPlay(“contact in”)

or something along those lines.

hope this helps :hr:

You can’t play 2 seperate sections of the same timeline at the same time. Your gotoAndPlay(“Contact In”) is overwriting your gotoAndPlay(“Splash Out”) for this reason.

If your animation is successive (being that the second immediately follows the first) then you don’t need any extra actions, just let the timeline play through.

Otherwise, you may have to do as lunatic stated.