In flash with as3.0, I have to call a function on the main stage from a movieClip
I have to call a function that is defined on the main stage of my project, and I have to call it from a MovieClip, what can I do? I'm using flash cs5.5 and AS3.0 There are multiple ways to access the MainTimeline from objects on the stage. Probably the most reliable is 'root', but there is also 'parent' (but only if you MovieClip is a direct child of the main timeline). // root should always work Object(root).myFunc(); // parent will only work if your movieclip is a direct child of the main timeline Object(parent).myFunc(); Note that you have to cast these are generic Objects (or MovieClip