Sign in to follow this  

Flash cs3 AS3-navigateToURL after button has finished down animation

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this