Search the Community
Showing results for tags 'DataLoader'.
-
Hi I have a usecase, where I use DataLoader to load binary Data. This way I'm always able to look into the incoming data like so: queue = new LoaderMax( { name:"mainQueue", autoLoad:true }); [...] var loader:DataLoader = new DataLoader("example.com/SESSIONSTRING", { name:someParameter, format: "binary", onComplete:dataCompleteHandler }); queue.append( loader ); [...] function assetCompleteHandler(e:LoaderEvent):void { var ba:ByteArray = LoaderMax.getLoader(e.target.name).content as ByteArray; //Validation here, like checking if it is long enough, if not, are the first 5 Bytes rea
- 6 replies
-
- loader
- dataloader
- (and 8 more)
-
Hi - I'm wondering if anyone has loaded an ATF Texture with LoaderMax, and if so how. I assume we should be using DataLoader, but when I tried this the content would not cast as a ByteArray. Any advice would be appreciated.
-
Maybe I am just missing it, but I can't seem to find where the servers response is stored when onFail is fired for a DataLoader. I have been digging through the event in the debugger and I don't see it, but when I look at the request/response in Charles proxy I see a json response even though its coming back as a 404. Am I just missing it?
-
Hi, Just need to sanity check what I am doing and get best advice on clearing loadermax queue (and contents) from memory. So, I am using a LoaderMax queue in Air to download & store locally a series of assets (images, videos, pdfs). _queue.append(new DataLoader(itemURL, {name:itemID, format:"binary", estimatedBytes:_estBytes_general, autoDispose:true}) ); I should say at this point I am not yet doing the saving to local filesystem (so that is not influencing memory) So, Potentially I may have 100's of MB of files which may kill the app if I wait until the end of t
- 6 replies
-
- Memory
- DataLoader
-
(and 2 more)
Tagged with: