# Basic problem with action script

**URL:** https://forum.kirupa.com/t/basic-problem-with-action-script/63092
**Category:** Uncategorized
**Created:** [September 2, 2004, 10:19pm UTC](https://forum.kirupa.com/t/basic-problem-with-action-script/63092 "2004-09-02T22:19:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SODAfx](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SODAfx](https://forum.kirupa.com/u/SODAfx)
#### Post date: [September 2, 2004, 10:19pm UTC](https://forum.kirupa.com/t/basic-problem-with-action-script/63092/1 "2004-09-02T22:19:32Z")

</div>

hello out there.

i have an btn integreated in a flash movie. the action of the btn shoud be to go to another frame outside of this button. but it doesn’t work out.

i tried it with gotoframe, goto framelable … nothing.

it seems that it is trying to do this action inside of this movie clip 😕

any sugestions?

sincerely  
SODAfx

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 2, 2004, 10:26pm UTC](https://forum.kirupa.com/t/basic-problem-with-action-script/63092/2 "2004-09-02T22:26:10Z")

</div>

Welcome to the forums!!

You have to set the path to the timeline of the frame in question. If the frame is on the main timeline then use \_root (i.e. \_root.gotoAndPlay(framenumber). If the frame in question is located inside a movie clip that sits on the main timeline then set the path to that movie clip (i.e. \_root.movieclipname.gotoAndPlay(framenumber). If the frame in question is located inside a movie clip that is inside a move clip that sits on the main timeline then set the path to that movie clip (i.e. \_root.movieclip1name.movieclip2name.gotoAndPlay(framenumber).

etc. etc.

Make sense? :hr:

p.s. framenumber can be replace with framelabel

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2004, 2:23am UTC](https://forum.kirupa.com/t/basic-problem-with-action-script/63092/3 "2004-09-03T02:23:07Z")

</div>

… luv u

worked out fine 🙂

thx  
SODAfx
