PDA

View Full Version : Button inside MC


dburwell
02-15-2001, 03:00 PM
I open a new fla file...

Create a new MC (Button MC)...

Create a new Button (Button) and drag it into my movie (Button MC)...

Associated the following script (which doesn't work) to the button...

on (release) {
gotoAndStop (10);
}

Now I drag the MC (Button MC) into my main timeline...

What is the script to go to frame 10 of the main timeline when I press the button? Is what I have above going to frame 10 of my MC (Button MC) or what?

This one is really confusing me, so thanks in advance for any help.

apostle
02-15-2001, 05:32 PM
dburwell,

yes your button script is telling the movie clip that it's embeded in to gotoAndStop (10); not othe mail timeline.
just change your code to look like this...

on (release) {
_root.gotoAndStop (10);
}


and it should work fine.

Hope this helps,
Let me know if you need anything else.


apostle