August 9th, 2011, 01:30 PM
Movie clip is skipping to the end on first play
hey, folks, I'm hoping you can help me out. I want something to slide off the screen when I click on it. I (think I) have it set so that when you click, the button itself disappears, and a movie clip of the object sliding away becomes visible and plays.
The problem is that the movie clip will either skip right to the end and stop if I have a "stop();" put in at the last frame, or it will skip right to the end on the first play, but then loop correctly after that if there's no "stop();". Any thoughts? Thanks!
August 9th, 2011, 06:27 PM
Hi, within the sliding animation you should put a stop action on the first keyframe and a gotoAndStop(1) on the last. Then change your code to this:
mcslide._visible = true;
slidebutton._visible = false;
Quis custodiet ipsos custodes?