AS3: Copying a Loader from one object to another
问题 I have two classes, call them A and B. They both contain a Loader object. In class A I load content into the Loader object. public class A { var loader:Loader; public function A():void { loader = new Loader(); this.addChild(loader); loader.load(...); } } public class B() { var loader:Loader; public function B():void { loader = new Loader(); this.addChild(loader); } } I need to now assign A's Loader to B's Loader (after the load is complete). In some other class I have an instance of A and B.