# \_currentframe HELP

**URL:** <https://forum.kirupa.com/t/-currentframe-help/236420>\
**Category:** flash\
**Created:** [August 20, 2007, 6:45pm UTC](https://forum.kirupa.com/t/-currentframe-help/236420 "2007-08-20T18:45:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fandalis](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@fandalis](https://forum.kirupa.com/u/fandalis)\
**Post date:** [August 20, 2007, 6:45pm UTC](https://forum.kirupa.com/t/-currentframe-help/236420/1 "2007-08-20T18:45:48Z")

</div>

# Hi Everyone, I just want to seek some expert advise… I just want to know if “\_currentframe” can make another action when it reaches a specific frame upon on(press). Here’s the script

on(press){  
this.gotoAndPlay(2);  
{  
if (this.\_currentframe == 10){\_root.gotoAndPlay(2);  
}  
else{  
this.null();  
}  
}  
}

======================================

1. There are several buttons in the flash movie and each button has a differenct action each time it reaches a frame. I don’t know if frame actions will do the job because if i want to reach my frame 10 frameaction and i have an action in frame 9 ofcourse it will do 9 first.
2. I’m not really sure if my else statemet is ok. I just want the “else” to do nothing.

Thanks a lot and i hope for your expert advises! 🙂
