|
-
Thank you so much cancerinform for your help that worked perfectly!
Many thanks
 Originally Posted by cancerinform
You create the Loader once and add it to the movieclip. Then images will be automatically replaced.
var imageLoader:Loader = new Loader();
movieclip_mc.addChild(imageLoader);
function loadImage(url:String):void
{
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(Pro gressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Eve nt.COMPLETE, imageLoaded);
}
loadImage("images/" + image + ".jpg");
function imageLoaded(e:Event):void
{
//whatever you want to do
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|