Need alittle help with a button

This button i have is animated so that when you rollover it stuff happens so what i did was made a button inside of a movieclip (probrably a bad idea) but anyhow now i want it to jump to a certian frame on the main timeline and play when it is clicked but it keeps trying to jump to the frame within it’s own movieclip… i know there is some kind of .root stuff you can do to specify what level you want it to target but i dont have access to the book from whitch i learned that one. can anyone help with accessing the root level of my movie?

if you were trying to access the 5 frame in the root level it would be something like this.


_root.gotoAndPlay(5);

you can also access it as level0 such as,


_level0.gotoAndPlay(5);

hope this works :crazy:

name the frame you want to link to “frame” [ or whatever you want to name it]

then add this code to ur button.

on(release){
_root.gotoAndPlay(“frame”);
}

:flower:

lol soulty beat me to it :smiley: hehehe

My advice for the button your using, you should keep it a movieclip, dnt worry about it being a button, because in flash Mx movieclips can be used as button , look at the fla as a example.