Actionscript 3: loading AS2 swf
Actionscript 3: loading AS2 swf
Out of context: Reply #2
- Started
- Last post
- 6 Responses
- kumori040
AS2 movies can be loaded into AS3 movies fairly simple. Just create a new loader instance, load the AS2 .SWF movie you want, and add it to the display stack.
For example (make sure you import all appropriate classes):
private function loadChild():void {
var _loader:Loader = new Loader();
loader.load(new URLRequest("myMovie.swf"));
addChild(loader);
}
//
loadChild();