Jump to content
Search Community

Adding another image to a loader-queue after queue already i

algro test
Moderator Tag

Recommended Posts

I did successfully load a image-queue. After that, when finished loading, I would like to add another image to the same queue. How can I archive that without having to reload the whole queue but only the additional image? At the moment it looks like this:

this._queue = new LoaderMax({name:"queuename",onComplete:allComplete});

for(var i:int = 0; i{
   this._queue.append(new ImageLoader("image.jpg",{name:i,onComplete:itemComplete}));  
}
this._queue.load();

private function itemComplete(e:LoaderEvent):void
{
  var imgLoader:ImageLoader = e.target as ImageLoader;
  var img:Sprite = imgLoader.content;
  addChild(img);
}
//now I would like to add another image to the same stack...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...