Jump to content
Search Community

Alex_Shim

Members
  • Posts

    2
  • Joined

  • Last visited

Alex_Shim's Achievements

0

Reputation

  1. Is there some simple way to add some vars to ImageLoader? I mean, like this: thumbLoader.append(new ImageLoader(thumbnail_images[i], {name:"photo"+i, container:this, lalala_var:i}));
  2. Decided to try your LoaderMax var links_arr:Array = [...] var queue:LoaderMax = new LoaderMax({name:"mainQueue", maxConnections:2, onChildComplete:currentComplete}); for (var i:uint = 0; i < links_arr.length; i++) { queue.append(new ImageLoader(links_arr[i], {name:"photo"+i, container:this, width:50, height:50})); } queue.load(); function currentComplete(event:LoaderEvent):void { var file:File = File.desktopDirectory.resolvePath(downloadFilename); var fileStream:FileStream = new FileStream(); urlStream.readBytes(fileData, 0, urlStream.bytesAvailable); fileStream.open(file, FileMode.WRITE); fileStream.writeBytes(fileData, 0, fileData.length); fileStream.close(); } The problem is that I don't know how to get URLStream of each loaded image. The idea was to show to user loaded img thumb (resized original) and simultaneously save the original img to users hardrive.
×
×
  • Create New...