How can I trigger a function at Main from an instanced object — the right way?
问题 I want to keep total control over my game from the Main MovieClip and nowhere else. But I don't want to pass its instance through constructors neither do any .parent reference thingy from its children. Seems too workaroundish and unstable. A sample situation: public class Main extends MovieClip { public function Main() { addChild(new MainMenu()); } public function startGame():void { trace("Game started"); } } public class MainMenu extends Sprite { public function MainMenu() { var option