# Scripting problem

**URL:** <https://forum.kirupa.com/t/scripting-problem/273546>\
**Category:** flash\
**Created:** [October 16, 2008, 6:26pm UTC](https://forum.kirupa.com/t/scripting-problem/273546 "2008-10-16T18:26:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Mo](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Post date:** [October 16, 2008, 6:26pm UTC](https://forum.kirupa.com/t/scripting-problem/273546/1 "2008-10-16T18:26:20Z")

</div>

Hi,

Could anyone translate this into actionscript…for the life of me I cant get it!

If in the movie “mymovie” the frame “myframe” is reached, go to the frame “new frame”

I have tried a few things but think i’m barking up the wrong tree:

If (mymovie.\_currentFrame = mymovie(“myframe”)){  
mymovie.gotoAndStop(“newframe”);  
}

If anyone could help I would be very grateful.  
J\_Mo
