Jump to content
  • Advertisement
Sign in to follow this  
AaronNobleMcGrath

Flash cs3 AS3-navigateToURL after button has finished down animation

This topic is 3033 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm attempting to build website in flash; I have a splash page with a logo and once you click this logo (it is a movie clip) it naviagtes to URL; however the movie clip doesn't finish the animation i have set it for down and thus sound and image are cut short, this looks and sounds horrid; if someone could help me i'd be much obliged. currrent code is: stop(); btn_mc.buttonMode = true; btn_mc.addEventListener(MouseEvent.ROLL_OVER, onButtonOver); btn_mc.addEventListener(MouseEvent.ROLL_OUT, onButtonOut); btn_mc.addEventListener(MouseEvent.MOUSE_DOWN, onButtonDown); btn_mc.addEventListener(MouseEvent.CLICK,goThere); function goThere(e:MouseEvent){ var request:URLRequest = new URLRequest("profile.html"); navigateToURL(request); } function onButtonOver(e:MouseEvent):void { e.currentTarget.gotoAndPlay("over"); } function onButtonOut(e:MouseEvent):void { e.currentTarget.gotoAndPlay("out"); } function onButtonDown(e:MouseEvent):void { e.currentTarget.gotoAndPlay("down"); navigateToURL( new URLRequest("Profile.html"), "_self"); } I need some sort of code that basically says "before navigating to URL finish the animation at MOUSE_DOWN" or something along those lines. Cheers for any input. Aaron

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!