# Need some guidance about action-script in keyframes

**URL:** <https://forum.kirupa.com/t/need-some-guidance-about-action-script-in-keyframes/318586>\
**Category:** Uncategorized\
**Created:** [January 24, 2011, 5:49pm UTC](https://forum.kirupa.com/t/need-some-guidance-about-action-script-in-keyframes/318586 "2011-01-24T17:49:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackOrbit](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@blackOrbit](https://forum.kirupa.com/u/blackOrbit)\
**Post date:** [January 24, 2011, 5:49pm UTC](https://forum.kirupa.com/t/need-some-guidance-about-action-script-in-keyframes/318586/1 "2011-01-24T17:49:46Z")

</div>

i have a problem  
i have  
3 keyframes each has 30 frames and two arrow buttons  
At each keyframe is loaded an image. I created a next button that when pressed would jog through each keyframe. Can somebody tell me the action script I would need for the next button?

and what is a handler???

cause i try this code  
nextButton.onRelease = function(){  
//set the root time line ahead 10 frames  
\_root.gotoAndPlay(\_currentFrame+10);  
}  
and then an error is show  
it says Statement is appear within on handler
