Basic problem with action script

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 :confused:

any sugestions?

sincerely
SODAfx

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

… luv u

worked out fine :slight_smile:

thx
SODAfx