# Goto and play frame problem

**URL:** <https://forum.kirupa.com/t/goto-and-play-frame-problem/251575>\
**Category:** flash\
**Created:** [February 10, 2008, 4:19pm UTC](https://forum.kirupa.com/t/goto-and-play-frame-problem/251575 "2008-02-10T16:19:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divardo](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Divardo](https://forum.kirupa.com/u/Divardo)\
**Post date:** [February 10, 2008, 4:19pm UTC](https://forum.kirupa.com/t/goto-and-play-frame-problem/251575/1 "2008-02-10T16:19:49Z")

</div>

I have a basic flash application with about 500 frames in this scene. I want to go play this frame when the user selects a button. I have the following code but it seems to go back to the first frame each time whereas I want it to go to frame 460. The statement above works by continuing the movie though.

if (finalresult \<8) {  
Play();  
} else if (finalresult \>= 8) {  
gotoAndPlay(460);  
}

Any ideas?
