Go to frame...?

I dont know if I’m doing this right but here we go…bear with me…

On the main movie, I have several buttons which are made from movie clips so on each of those movie clips, I have on rollOver actions to make the buttons animated.

Now my problem is, I dont know how to make the buttons so that when you click on it, it goes to a certain frame number or label, on the main timeline…since those buttons are on another level.

I tried placing ‘invisible’ buttons on top of those buttons on the main timeline, but then the animations wont work, then I tried putting the ‘onRelease go to frame…’ thing on the main timeline right on those Movie clip buttons, but that doesnt work either…

Hope I’m making sense… :crazy:

Can someone please help me? :hair:

I think you can use _root or _level0 to reach main timeline then you use gotoAndPlay(); to specify frame number to play.

I tried that too… can you give me an example?
I also tried:
_root.gotoAndPlay(“framelabel”);

doesnt work!! :*(

let me make myself clear. According to your first post, you create buttons with movieClip on main timeline, right? and you have rollover on that button. Does the rollover work:? and when you try to access frame in main timeline, you couldnt reach it. is that correct? If so, buttons are all on step above main timeline. why dont you try _parent instead? It might work. Sorry I’m not a flash guru. I hope some other knowledgeable master will cover this.

it should be _root.mcname.gotoAndPlay(“framelabel” or number)

Grim

thank you KazchiX :nerd:
But I tried _parent as well… :-\ I really dont know what I’m doing wrong! LOL~ maybe I’m doing something else wrong? I have no clue…

grimdeath:
_root.mcname.gotoAndPlay(“framelabel” or number)

what is ‘mcname’ ?

thanks!

mcname is the instance of your movie clip you are using a movie clip as a button right???

Grim

if you want the main timeline to go somewhere

_root.gotoAndPlay(“framelabel”);

is it. The only problem there might be an invalid frame label name. Make sure the label is alpha-numeric and does NOT start with a number. Double check spelling to make sure that label is correct with the actual frame given the same name. :slight_smile:

:trout:
Ok I’m a big retard. I put the script on the wrong frame.
Sorries! How embarassing… :sigh: