I came across this the other day and it was really frustrating...
I've got a movie in the Library with a link name of "L_mClip" and the following code inside it's frame:
ActionScript Code:
this._myPlace = "Planet Earth";
This is in the _root timeline:
ActionScript Code:
stop();
//this will trace
attachMovie("L_mClip", "i_mClip", _root.getNextHighestDepth());
_root.onMouseDown = function(){
trace("trace within _root.onMouseDown : " + _root.i_mClip._myPlace);
}
//...while this will not!
trace("trace within _root actions = " + _root.i_mClip._myPlace);
Any thoughts? Why can't I access it outside of the onMouseDown? Am I taking crazy PILLS?!? It's gotta be something really stupid on my part...
Thanks,
-C