Two Frame Animation with AS3 - the second animation not play

Hello,

My MovieClip has two frames:

  • The first frame will use AS3 to do simple animation (e.g. introduction). When the animation in fist frame is finished, the animation will proceed to frame 2 by using the gotoAndPlay(2) method.

  • The second frame will also use AS3 ENTER_FRAME to do an animation (a ball bouncing between the left stage and the right stage). If without the first frame, the ball will be bouncing continously.

My Problem:
Now I found that when the first frame introduction animation is finished, it will go to the second frame. However the screen of the second frame only appear for about 0.1 second then go back to the first frame.

What I need:
I require that the first frame (introduction animation) will only play one time only. Then the animation in second frame will be playing continously. How can I do that?

Please help.

Thanks and best regards

Alex