how to load external image with actionscript 3.0

This post is a simple example for actionscript 3.0 beginners. The bellow actionscript 3.0 code help you to understand how you can load an external image from a url. if any doubt or help please add a comment.


import flash.display.Loader;
import flash.net.URLRequest;
var url:String="http://www.sfubiz.ca/misa/image/flash.jpg"
var loader:Loader = new Loader();
loader.load(new URLRequest(url));
addChild(loader);


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer