# 10 frame delay

**URL:** <https://forum.kirupa.com/t/10-frame-delay/262688>\
**Category:** flash\
**Created:** [June 9, 2008, 6:47am UTC](https://forum.kirupa.com/t/10-frame-delay/262688 "2008-06-09T06:47:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShawnMattCraw](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@ShawnMattCraw](https://forum.kirupa.com/u/ShawnMattCraw)\
**Post date:** [June 9, 2008, 6:47am UTC](https://forum.kirupa.com/t/10-frame-delay/262688/1 "2008-06-09T06:47:00Z")

</div>

I am using as3. Is there a way to have after a button is pressed the movie will play for a few frames, say 10, and then automatically go to the frame label. EX: Click\>10frames\>gotoAndplay(“example”)?

---

<div class="post-metadata">

**Author:** ![hasch2o](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hasch2o](https://forum.kirupa.com/u/hasch2o)\
**Post date:** [June 9, 2008, 7:19am UTC](https://forum.kirupa.com/t/10-frame-delay/262688/2 "2008-06-09T07:19:21Z")

</div>

Sure, you could put a listener to the enterframe event and a counter which counts down and if the counter is 0 delete the listener and go to the frame label.  
Search the forum for “Event Enterframe” and for “go to frame label”, you should be able to find plenty of stuff…if you still have some questions, feel free to post.

hth Carlo

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 9, 2008, 7:29am UTC](https://forum.kirupa.com/t/10-frame-delay/262688/3 "2008-06-09T07:29:16Z")

</div>

The Timer class is probably a better choice.

---

<div class="post-metadata">

**Author:** ![hasch2o](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hasch2o](https://forum.kirupa.com/u/hasch2o)\
**Post date:** [June 9, 2008, 8:08am UTC](https://forum.kirupa.com/t/10-frame-delay/262688/4 "2008-06-09T08:08:30Z")

</div>

Why Timer if he needs to check for frames?  
(just curious!)
