Share Posted September 16, 2013 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. Link to comment Share on other sites More sharing options...
Share Posted September 18, 2013 ImageLoader doesn't use a URLStream - it uses a standard Loader. Apparently that's more secure. You're welcome to use DataLoader if you need binary data or something. Maybe this will help?: http://ask.amoeba.co.in/save-images-from-flash-actionsctipt-3-filereference-save-jpgencoder/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now