# Need to Delay MOUSE-UP function

**URL:** <https://forum.kirupa.com/t/need-to-delay-mouse-up-function/251791>\
**Category:** flash\
**Created:** [February 12, 2008, 7:08pm UTC](https://forum.kirupa.com/t/need-to-delay-mouse-up-function/251791 "2008-02-12T19:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TayImagery](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TayImagery](https://forum.kirupa.com/u/TayImagery)\
**Post date:** [February 12, 2008, 7:08pm UTC](https://forum.kirupa.com/t/need-to-delay-mouse-up-function/251791/1 "2008-02-12T19:08:38Z")

</div>

AS3 beginner. I have animation triggered by MOUSE-DOWN. The subsequent MOUSE-UP triggers a getURL (\_self) . Is there a means to delay (by say 1000 ms) the getURL so the animation can continue for that interval.

The code I have thus far is:

import flash.events.MouseEvent;  
import flash.events.IEventDispatcher;  
import flash.display.MovieClip;  
this.words.stop();

this.button.addEventListener(MouseEvent.MOUSE\_OVER,over);  
function over(e:MouseEvent):void {  
this.words.gotoAndPlay(1);  
}  
this.button.addEventListener(MouseEvent.MOUSE\_OUT,off);  
function off(e:MouseEvent):void {  
this.words.gotoAndPlay(9);  
}  
this.button.addEventListener(MouseEvent.MOUSE\_DOWN,down);  
function down(e:MouseEvent):void {  
this.words.gotoAndPlay(16);  
}  
this.button.addEventListener(MouseEvent.MOUSE\_UP, up);  
function up(event:MouseEvent):void {  
navigateToURL(new URLRequest(“[http://www.intellijet.com](http://www.intellijet.com)”),"\_self");  
trace(“I’m clicked”);  
}

Works fine except I want to see the words MC play from frame 16 to 30 or so before its gone.
