herregan
08-11-2008, 03:13 PM
I have a simple movie as a start page to our website. I want the movie to stop at the last frame and then the user can click an enter button to go to the site. The problem is the movie will not stop looping. If I use just the stop command it will stop, but as soon as I add the button click script the movie continues to loop upon testing it. I'm lost. Thanks for any help that can be provided. Here is the code I am using:
stop();
enter_btn.addEventListener(MouseEvent.CLICK, onEnterClick);
function onEnterClick(e:MouseEvent):void
{
navigateToURL(new URLRequest ("home.html"));
trace("you clicked me.");
}
stop();
enter_btn.addEventListener(MouseEvent.CLICK, onEnterClick);
function onEnterClick(e:MouseEvent):void
{
navigateToURL(new URLRequest ("home.html"));
trace("you clicked me.");
}