Answered
movie clip access tip request.
I am attempting to access a movieclip on the stage by its
instance name.
It is not a child of anything but the stage.
I can do this in the document class via:
var mc:MovieClip = pumpkin_mc;
trace (mc);
but, if I try the same in a non-document class, it cannot find the movieclip.
why? and How do I?
I could access it with:
var _mc:MovieClip = MovieClip(e.currentTarget.root).pumpkin_mc;
but I am writing a function that effects the pumpkin only, and I want to access the pumpkin_mc in that class without feeding the function the pumpkin instance object.
i.e.
openPumpkin()
closePumpkin()
It is not a child of anything but the stage.
I can do this in the document class via:
var mc:MovieClip = pumpkin_mc;
trace (mc);
but, if I try the same in a non-document class, it cannot find the movieclip.
why? and How do I?
I could access it with:
var _mc:MovieClip = MovieClip(e.currentTarget.root).pumpkin_mc;
but I am writing a function that effects the pumpkin only, and I want to access the pumpkin_mc in that class without feeding the function the pumpkin instance object.
i.e.
openPumpkin()
closePumpkin()