ActionScript 3.0 Video Lesson 26: Loading Images into Stage

Wed, Sep 2, 2009

ActionScript


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

//Loading Images into Stage using ActionScript
//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!

Related Articles:

, , , , , , , , , , , , , ,

Leave a Reply

Security Code:

AVA Trading Forex
WIX create a FREE website.
Try ACT! 2010 Today
Accept Credit Cards
UseNeXT Fast Downloads
For Free Stuff Click Here

Get Paid for Filling Surveys


Go Daddy $7.49.com sale 125x125 Huddle Collaboration
oDesk Certified Action Script Programmer oDesk Certified Adobe Flash CS3 Designer oDesk Certified Adobe Photoshop 6.0 Designer

Compare Web Hosting Services and Prices

web hosting - Web Hosting guide to popular hosts.

Twitter Followers