# Possible to delay an addEventListener function with AS3?

**URL:** <https://forum.kirupa.com/t/possible-to-delay-an-addeventlistener-function-with-as3/268387>\
**Category:** Uncategorized\
**Created:** [August 13, 2008, 8:02am UTC](https://forum.kirupa.com/t/possible-to-delay-an-addeventlistener-function-with-as3/268387 "2008-08-13T08:02:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ememdoubleu](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ememdoubleu](https://forum.kirupa.com/u/ememdoubleu)\
**Post date:** [August 13, 2008, 8:02am UTC](https://forum.kirupa.com/t/possible-to-delay-an-addeventlistener-function-with-as3/268387/1 "2008-08-13T08:02:20Z")

</div>

mornings!

any chance i can delay addEventListener functions such as MOUSE\_OVER and MOUSE\_OUT on a certain keyframe?

when the playhead is send to by example frame(40), is label mc6, it initiates the pageLoad of mc\_6…

The pageLoad mc6 (code shown below) tweens 4 images (mc’s that function as btn’s) onto the stage and each image has the eventListeners CLICK, MOUSE\_OVER, MOUSE\_OUT applied to it… When the mouse pointer hits an image during the pageLoad of mc6, the pageLoad interrupts and some images will not even show or are half ‘tweened’ onto the stage…  
result: the page is incomplete and loses its functionality ☹

if i could delay the eventListeners for a few seconds my problem would be solved, doable?  
should i use a different approach?

please advice…  
thanks, mm

below is the code of the pageLoad mc6:

```auto
} else if (targetFrame == "mc6") {
		TweenMax.to(buttonGroup1.popUp, .4,{autoAlpha:1, x:900, delay:0.2, ease:Exponential.easeOut, overwrite:false});
		TweenMax.allFrom([evtsGroup1.evts1, evtsGroup1.evts2, evtsGroup1.evts3, evtsGroup1.evts4], .5,{autoAlpha:0, x:0, y:0, scaleX:.1, scaleY:.1, delay: 0, delayIncrement:0.1, ease:Back.easeOut, overwrite:false, blurFilter:{blurX:10, blurY:10, quality:3}});

```
