# Executing action on certain frame

**URL:** <https://forum.kirupa.com/t/executing-action-on-certain-frame/290620>\
**Category:** flash\
**Created:** [June 17, 2009, 8:20am UTC](https://forum.kirupa.com/t/executing-action-on-certain-frame/290620 "2009-06-17T08:20:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [June 17, 2009, 8:20am UTC](https://forum.kirupa.com/t/executing-action-on-certain-frame/290620/1 "2009-06-17T08:20:34Z")

</div>

This is a strange problem …

I have some action on a timeline, on frame 10 (a keyframe). So currently I’m on frame 1, and when I gotoAndPlay frame 10 , the code gets executed.

BUT, when I’m on frame 1, and I gotoandPlay frame 11 , the code does NOT get executed!! It was a shock actually, cuz I never thought flash would behave this way. Or is this something new with Flash/AS3?

If Im jumping to any frame after 10, how can I let that code be executed? Note that im just giving a numbered example, but in reality, I dont know which keyframe has some code.

Thanks guys!
