sending a variable to main MC that is nested in a MC on a external MC
I want to send a variable from within a MC, on a external MC that
is loaded into my main movie. I have been able to send a variable to my main movie if the varible is on the main of the external SWF
(using code below on button on main, in the external MC)
_parent.tempvar = "externalMC.swf";
(code on main MC to load externalMC.swf)
loadMovie (_parent.tempvar, _root.container3);
it's all a question on finding the path to that variable. you problem sounds more like "retreiving" the variable than "sending". to send just say:
var tempvar="somevalue";
to retreive you need the path of that var (the "address" of the timeline where that variable was set).
examples:
_parent.tempvar <- means the variable tempvar is one clip below.
_parent._parent.tempvar <- means the variable tempvar is two clip below.
_level1.someMC.tempvar <- means the variable tempvar is in a MC with instance name "someMC" on _level1
gparis thank you for clearing things up for me. I was able to get everything to work correctly after you cleared up those terms for me. Thanks again for your quality help.