Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New help with buttons going to frames.

Status
Not open for further replies.

PinkTaco

Technical User
Sep 18, 2003
13
US
This is kind of like my last post about how how to get a button to goto a diferent scene (but to a frame this time). Well i cant get my moveing button that is inside many movie clips to goto a certain frame on the outside of of the many movie clips.
i labeled the frame i wanted to goto "proframe"

Pro_btn.onRelease = function(){
gotoAndPlay("proframe");
}
this question may be a little newbish but i dont have any other help... Thanks
 
You have to target the main timeline...

Pro_btn.onRelease = function(){
_root.gotoAndPlay("proframe");
};


Regards,

cubalibre2.gif
 
I have tried putting it on every timeline and it still doesn't work. =(
 
If you scripted your button's handler within itself, what I posted should work.
If you're defining your button's handler from the main timeline, you'll have to add the path or your button in the defining of the handler...

_root.mc1.mc2.Pro_btn.onRelease = function(){
_root.gotoAndPlay("proframe");
};

Of course replace mc1 & mc2 and others in which your button
may be nested, by the actual instance names of your mcs. Hope you've named all of your instances!

Regards,

cubalibre2.gif
 
Ok so I am on the main timeline. Now i label the first clip to get to the button, the second clip, and the third clip. Now I am to the button. So i go back to the main timeline and put in?

_root.clipone.cliptwo.clipthree.Pro_btn.onRelease = function(){
_root.gotoAndPlay("proframe");
};

i tried this and it doesnt work.. maybe because it is also in a clip?

thanks for all your help
 
Can't open it! Is this MX2004? Or are you on Mac?

If Mac, then you'll have to zip it up so that we PC users can access it.

Regards,

cubalibre2.gif
 
doh, yeah it is 2004, ill try and convert to regular mx
 
On a big rush till noon friday... Will look into it only then...

But just had a look, and it's simple as...

Gave an instance name of mc7 to your Symbol7 mc, and mc2 to your Symbol2 mc, and this code works fine...
Code:
stop();
_level0.mc7.mc2.onebutton.onRelease = function() {
	_level0.gotoAndPlay("nextframe");
};


Regards,

cubalibre2.gif
 
ahhhhh i can get it to work with that in MX, but, i try it in 2004 and it doesnt work...
is there anyother way of doing it?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top