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

flash actionscript

group:

controlling MC


controlling MC Vox
3/31/2004 9:38:28 PM
flash actionscript:
Hello all,

Problem is, On a button, if i have code to load an external MC but also want a
movie clip thats already on the main movie timeline to do something for example
change to a different picture. how would I do this?

Any Help is greatly appreciated

thank you

PS: Im using mx2004
Re: controlling MC kglad
3/31/2004 11:25:52 PM
a movieclip can't change to a different picture. you can load a jpg in place
of the movieclip and you can change the frame of the movieclip and you can
attach a movieclip from the library and you can do a lot of other things. but
it doesn't make sense to talk about changing a movieclip to a different
picture. what are you trying to accomplish?
Re: controlling MC Vox
4/1/2004 1:21:08 AM
sorry maybe i should have rephrased it better.

I have my main timeline. On the main timeline, 2 movie clips. Lets call them
"A"and "B".

"B" is navigation, and in that MC it has another nested MC inside of it which
has a button. On that button i would like to tell movie clip "A" that is on the
main timeline, to go and play .... lets say frame 10 in its own mc.

Hope that helps
Re: controlling MC kglad
4/1/2004 3:57:31 AM
yes, that's clear. attached to your button you can use:

on(press){
_root.A.gotoAndPLay(10); // no matter where your button is within your
movie, _root.A will reference movieclip A that's on the _root timeline.
}
AddThis Social Bookmark Button