# AS3 Flash CS3 button behaviour

**URL:** <https://forum.kirupa.com/t/as3-flash-cs3-button-behaviour/299472>\
**Category:** flash\
**Created:** [November 5, 2009, 1:33pm UTC](https://forum.kirupa.com/t/as3-flash-cs3-button-behaviour/299472 "2009-11-05T13:33:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![C\_R\_E\_A\_M1](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@C\_R\_E\_A\_M1](https://forum.kirupa.com/u/C_R_E_A_M1)\
**Post date:** [November 5, 2009, 1:33pm UTC](https://forum.kirupa.com/t/as3-flash-cs3-button-behaviour/299472/1 "2009-11-05T13:33:03Z")

</div>

Hi all,

Very new to this, so my apologies for this very basic question.  
I made a button which has a movieclip in the rollover state and a movieclip in the down state. I have added script in the first frame on the main scene to make it go to a URL once clicked but instead I would like it to finish playing the movieclip inside of the down state of the button first before going to the URL.

SCRIPT USED:

design.addEventListener(MouseEvent.CLICK, buttonClickHandler);  
function buttonClickHandler(event:MouseEvent):void {  
navigateToURL(new URLRequest(“[http://WEBSITE](http://WEBSITE)”));

}

attachment added. If you hold the mouse down it will play the full movieclip. This is what I would like to play before going to the URL link. Please let me know where I’ve gone wrong. Thankyou
