# Problem with movie clip animation

**URL:** https://forum.kirupa.com/t/problem-with-movie-clip-animation/197815
**Category:** flash
**Created:** [August 19, 2006, 3:17pm UTC](https://forum.kirupa.com/t/problem-with-movie-clip-animation/197815 "2006-08-19T15:17:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pixelmech](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@Pixelmech](https://forum.kirupa.com/u/Pixelmech)
#### Post date: [August 19, 2006, 3:17pm UTC](https://forum.kirupa.com/t/problem-with-movie-clip-animation/197815/1 "2006-08-19T15:17:46Z")

</div>

I’m doing this movie clip animation where I trigger the animation when the movie clip gets a onRollOver event. When rolled over, the movie clip goes to a label and plays that section, which has a frame with stop() at the end.

When you get the onRollOut event, it does the same thing, playing the next section, again with a stop() at the end.

So of course the first frame has stop() on it so the movie clip does not play until rolled over. It seemed to work at first, but now what I am noticing is that you quickly get stuck in the first frame of the movie clip that has the stop() in it. You can see what I mean here:

[http://www.pixelmech.com/flash/access-diagram.swf](http://www.pixelmech.com/flash/access-diagram.swf)

The AS I am using to trigger is is this (where sources\_btn = the movie clip instance)

```auto
sources_btn.onRollOver = function () {
    sources_btn.gotoAndPlay("expand");
}
sources_btn.onRollOut = function () {
    sources_btn.gotoAndPlay("contract");
}

```

The .fla file is attached. Can someone explain what I am doing wrong?

Thanks

Tom
