# On(rollOver) timer script

**URL:** https://forum.kirupa.com/t/on-rollover-timer-script/305712
**Category:** Uncategorized
**Created:** [March 2, 2010, 2:03pm UTC](https://forum.kirupa.com/t/on-rollover-timer-script/305712 "2010-03-02T14:03:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![johnb2](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@johnb2](https://forum.kirupa.com/u/johnb2)
#### Post date: [March 2, 2010, 2:03pm UTC](https://forum.kirupa.com/t/on-rollover-timer-script/305712/1 "2010-03-02T14:03:19Z")

</div>

I’ve been looking for 2 days now all over Kirupa and the internet and I just can’t seem to find a direct answer to this issue… partially because of my lack of flash knowledge and lack of proper syntax knowledge.

What I have is a button that when you (rollOver) I need it to wait 2 seconds and then execute gotoAndPlay(“frameLabel”); - but if the user (rollOut) before the 2 seconds is up nothing happens and the timer stops.

Outside of simply making 2 seconds on the timeline and a bunch of gotoAndPlays, how can I execute this with actionscript 2? I’ve found a good example for AS3 but I’m unable to use AS3 for this project.

Any hints? Thanks much in advance.
