all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

Help! Please! God, somebody! AAAAAGGGGH!


Help! Please! God, somebody! AAAAAGGGGH! HenryPr
9/5/2004 4:45:05 PM
flash actionscript:
Is it possible to control a movie clip from a button which is part of another
movie clip?

For example:

If I wanted movie clip X to goto frame 5 and play when a button in movie clip
Y is pressed. Leaving both movie clip Y timeline and the main timeline static.

Re: Help! Please! God, somebody! AAAAAGGGGH! derobinson
9/5/2004 4:56:31 PM
Yes, as long as you scope everything properly, there should be no problem. So,
something like this code should be placed on the main timeline (you could put
it elsewhere as well, but for the sake of simplicity):

mcY.mcYbutton.onRelease = function(){

mcX.gotoAndPlay(5);

}


Hope that helps!
/david
AddThis Social Bookmark Button