# \[AS2.0\] Need help with my first Transition Animation

**URL:** <https://forum.kirupa.com/t/as2-0-need-help-with-my-first-transition-animation/259222>\
**Category:** flash\
**Created:** [May 2, 2008, 6:37am UTC](https://forum.kirupa.com/t/as2-0-need-help-with-my-first-transition-animation/259222 "2008-05-02T06:37:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tailz/32/7262_2.png) [@tailz](https://forum.kirupa.com/u/tailz)\
**Post date:** [May 2, 2008, 6:37am UTC](https://forum.kirupa.com/t/as2-0-need-help-with-my-first-transition-animation/259222/1 "2008-05-02T06:37:53Z")

</div>

Hello, I’ve seen this done in an ActionScript 3.0 flash movie and I thought I could butcher it up and make it do the same in an ActionScript 2.0 flash movie… pitty I am still learning flash and the best I can do it make buttons! :wasted:

Anyway… what I want to end up with is a transition animation that plays as a Mask when a viewer clicks on a button. The animation will hide animate in such a way that it will cover the currently displayed information in the Flash Movie, then while the info is covered, the main movie will switch to the next section (as determined by the button click), and the animation will continue to play and “reveal” the new info.

So first thing, I made a 50 frame symbol (symbol instance name: tab\_transition) to act as my transition animation. In the first frame I put the following code:

```auto
stop();

```

Then in frame 25 (the point where it covers the main information display area, I put the following code that I got from the ActionScript 3.0 sample I was butchering.

```auto
parent.gotoAndPlay(parent.nextSection);

```

The idea being here that the string “nextSection” should be what triggers the main timeline to jump to the next section to play.

Next I edited each of my buttons with the following code:

```auto
on(release) {
 nextSection = "our_services"
 tab_transition.play();
}

```

This should mean, as far as I userstand… when the button is released from the mouse click, the tab\_transition symbol will be played and the nextSection string will be populated to equel “our\_services” which should be triggered when the tab\_transition symbol hits frame 25 which will jump the main timeline to the frame label of “our\_services” because I also have sitting in the main timeline the following code:

```auto
var nextSection:String;

```

This code is sitting in the first frame, of a layer called “ActionScript” in the parent timeline.

Now, with all this put into my Flash Movie, I tested it out and this is what seems to be going on… when I click a button, the tab\_transition symbol plays, but the string which should jump the animation around the main timeline does not seem to work.

If anyone can point out to this ActionScripe noob where he is going wrong, I could really use the help.
