PDA

View Full Version : Problem with movie clip animation



Pixelmech
August 19th, 2006, 12:17 PM
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

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


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

Pixelmech
August 19th, 2006, 12:24 PM
Ugh, okay I found one problem - I did not have a keyframe on frame two in the actions layer for my label, so "expand" was on frame 1. That fixes that...however...

Still, if you mouse out before the animation is done (or vice versa) you get weird jumpy behavior. Is there some way to disable the RollOver/RollOut event during that short span where the animation is running? Or again is there a better way to do this?

Updated swf on my site and attached new flash.

Thanks