# Thread Execution?

**URL:** <https://forum.kirupa.com/t/thread-execution/249438>\
**Category:** Uncategorized\
**Created:** [January 18, 2008, 7:15pm UTC](https://forum.kirupa.com/t/thread-execution/249438 "2008-01-18T19:15:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![endemoniada](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@endemoniada](https://forum.kirupa.com/u/endemoniada)\
**Post date:** [January 18, 2008, 7:15pm UTC](https://forum.kirupa.com/t/thread-execution/249438/1 "2008-01-18T19:15:57Z")

</div>

Hi guys,

Let’s say I have two event listeners: Event.ENTER\_FRAME and MouseEvent:MOUSE\_DOWN.

public function enterFrame(event:Event) : void {

// this code is being executed…  
// meanwhile, the mouse button gets pressed right now

// will it jump to the mouseDown handler here or wait until this function block is complete ?

// more code

}

Thanks.
