# Can a Timer execute immediately?

**URL:** <https://forum.kirupa.com/t/can-a-timer-execute-immediately/300081>\
**Category:** flash\
**Created:** [November 16, 2009, 1:42am UTC](https://forum.kirupa.com/t/can-a-timer-execute-immediately/300081 "2009-11-16T01:42:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [November 16, 2009, 1:42am UTC](https://forum.kirupa.com/t/can-a-timer-execute-immediately/300081/1 "2009-11-16T01:42:15Z")

</div>

since my Timer runs every 5 seconds I have to initially execute the function normally. This creates a problem though since if the user has the mouse over the stage, it stops the timer. It cannot do this because it takes 5 seconds before the Timer first runs the function.

any ideas?
