I want to load an image object and want to add it to the stage in order. How do I complete this?
If this is an external image then you will use it:
Var loader: loader = new loader (); Loader.load (new URLRequest ("http: //urltoyourimage.jpg")); Loader.contentLoaderInfo.addEventListener (Event.Complete, On CompoundHandler); Function On Complexhandler (Event: Event): Zero {event.target.removeEventListener (event.complete, on complexhelder); AddChild (event.target.content); }
No comments:
Post a Comment