Search the Community

Showing results for tags 'dataloader'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 / JS
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. 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 read as a String saying "ERROR" and the server gave an Error back. Or is it long enough, but to short to be sure, so there might be a Warning or PHP Error coming back from the Server, then display te bytearray as a String for me to read "unexpextd error on PHP Line...". I like handling with the raw ByteArray } This is all great, but I want to be able to then convert the Binary Data into a Movieclip. That does only seem to work when doing so: var mc:MovieClip = LoaderMax.getLoader(ID).rawContent as MovieClip; The Problem is, that only SWFLoader has the rawContent accessable. When using DataLoader I only have access to Content but not rawContent. My problem is this generally: When I use DataLoader, I can scoop into the ByteArray and do all kind of magic, but am not able to create a MC from the loaded Data. When I use SWFLoader, I can play with the Loaded SWF/MC with easy, but have no Access to the ByteArray. Am I missing something? How can I have both features? Being able to have a accessable SWF and being able to scroop the Data befor allowing it to be injected into my App? Indy
  2. bobbylox

    Load ATF Texture

    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.
  3. 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?
  4. 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 the queue. So as a queue "child" loads in, I am (going to) save to file, then I kill of the child & it's contents. I also call garbage collection at this point (Air only). function queueChildComplete(event:LoaderEvent):void { event.target.unload(); _queue.remove(event.target as LoaderCore); System.gc(); } When the entire queue completes, I then call the following to clear the queue from memory (not that their should be anything in there anymore). _queue.unload(); _queue.dispose(true) _queue.empty(true,true); System.gc(); Don't think I need to be calling all of those unload, dispose & empty.. but you know belt & braces! Now the problem is, when I trace System.privateMemory before (just before queue.load) & after the operation, memory has increased by the size of the files downloaded. 1) What is the text book method of disposing of a queue, and it's contents .. totally from memory (knowing that I will have re instantiate it later). 2) Do you have a handy tool that will stream files directly to the local filesystem for AIR apps (using urlstream perhaps). Many Thanks