loading external images

//loading external images

to load an image in flash is easy and only take a few lines of actionscrit

var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
var fileRequest:URLRequest = new URLRequest("myImage.jpg");
function onLoaded(e:Event) {    
      // the image is now loaded, so let's add it to the display list!    

I used the above image, but you can use any image at all, If you don’t use Snoopy just make sure to change the movie size to at least match the size of your image.

By | 2009-11-20T06:11:19+00:00 November 20th, 2009|Actionscript 3.0|0 Comments

About the Author:

Leave A Comment