Loading Images into stage is much similar to loading text or html, we need a url request, a loader and then addchild. On this video tutorial we show how simple it is. Works for png, jpg and bmp.
HERE IS THE SOURCE CODE
//by AVRAHAM SALTOUN
// solutions at say-web dot com
// FREE TO USE AND DISTRIBUTE
// To load an image is pretty
//much similar to loading text
// we will need a URL request
// and a loader
var req:URLRequest = new URLRequest(“SayWebLogoLarge.png”);
var loader:Loader = new Loader();
loader.load(req);
// At this point the image is loaded
// but not displayed
addChild(loader);
// Has to be on the same folder
// I hope this helps
// thanks for watching!


Wed, Sep 2, 2009
ActionScript