Accessing the Document class in AS3
问题 How can instantiated classes access the Document class? Even after I name the Document class using the Properties bar in Flash, attempting to access it from other classes usually fails, saying "attempting to access an undefined property... One solution is always casting the Document class to itself! eg. Main(Main).globalMethod(); But sometimes even this stellar gotcha fails, and then there's usually no way out, apart from the obvious! class Other{ var parentClass:Main; public function Other