/ Published in: ActionScript 3
Load an image
Expand |
Embed | Plain Text
var ldr:Loader = new Loader(); ldr.load(new URLRequest("template.jpg")); ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true); function loaded(evt:Event):void { addChild(evt.target.content); }
You need to login to post a comment.
