
August 9th, 2011, 01:30 PM
|
|
Registered User
|
|
Join Date: Aug 2011
Posts: 1
Time spent in forums: 13 m 7 sec
Reputation Power: 0
|
|
|
ActionScript 3 - 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.
Code:
mcslide._visible=false;
slidebutton.addEventListener(MouseEvent.CLICK, Click);
function Click(ev:MouseEvent):void
{
mcslide._visible=true,
slidebutton._visible=false);
}
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!
|