Jump to content
Search Community

jrg716

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by jrg716

  1. Thanks... In my case, I'm developing a plugin system and would like to validate the integrity of the plugin against what I expect it to be. I'll certainly let you know if I implement something with LoaderMax.
  2. Hi, Just wondering if any thought had been given to adding a MD5 checksum capability to LoaderMax. In other words, pass a md5 checksum as a parameter and if the loaded content doesn't match, the load would fail. If not, any thoughts on where to add code into the source (DisplayObjectLoader or LoaderCore perhaps). The trick is that once the loaded object is converted to its content form (ex. SWFLoader.rawContent) it is too late to calculate the MD5. Thanks!
  3. Thanks for th reply. My project is quite large, so I'll see if I can reduce it to an example to show the error.
  4. Hi, I have an AIR application that uses a LoaderMax instance to which I append two image loaders and a video loader. When I execute the application, the Video Loader starts throwing errors like the following: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock.loading::VideoLoader/_closeStream()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:1002] at com.greensock.loading::VideoLoader/_auditHandler()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:989] at flash.net::NetStream/invokeWithArgsArray() at flash.net::NetStream/call() at flash.net::NetStream/pause() at com.greensock.loading::VideoLoader/_closeStream()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:996] at com.greensock.loading::VideoLoader/_auditHandler()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:989] at flash.net::NetStream/invokeWithArgsArray() at flash.net::NetStream/call() at flash.net::NetStream/pause() at com.greensock.loading::VideoLoader/_closeStream()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:996] at com.greensock.loading::VideoLoader/_auditHandler()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:989] at flash.net::NetStream/invokeWithArgsArray() at flash.net::NetStream/call() at flash.net::NetStream/pause() at com.greensock.loading::VideoLoader/_closeStream()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:996] at com.greensock.loading::VideoLoader/_auditHandler()[D:\_Flash\_AS3\src\com\greensock\loading\VideoLoader.as:989] at flash.net::NetStream/invokeWithArgsArray() at flash.net::NetStream/call() at flash.net::NetStream/pause() at com.greensock.loading::VideoLoader/_closeStream()[D:\_Flash\_AS3 It will continue to throw errors until the AIR application crashes (or I stop the app). However, if I don't append the VideoLoader to the LoaderMax queue, but instead load it on its own - it loads fine. I can certainly use this as a work around, but wanted to report the issue in case there is some fix for it. Thanks!
  5. Thanks! How would this work for other file types (SWF, etc.). Does the loader look for an already loaded version of a SWF and then simply reference it?
  6. Hi, If I create multiple instances of Loader max and specify some files in each that have the same URL, will it only load the content at the URL once. My specific case is that I would like to create multiple queues and put an image library in each queue. Because the order the queues are loaded is determined at run-time, I would like that image library to be loaded by the first queue loaded. However, if a second loader includes the image library, I would like to use the one that was previously loaded - not reload a new instance of it. Just wondering how LoaderMax handles this case. Thanks!
  7. Hi, I have a question on the order in which events are being fired by LoaderMax. Specifically, when I have maxConnections set to 1, I would expect that the open and complete events would fire as each file is handled (ie. interspered within the overall progress of the loader). However, this is not what I am seeing. Here's an example: _loader = new LoaderMax({name:"Loader", maxConnections:1, onProgress:loadHandler}); _loader.append(new XMLLoader("config.xml", {name:"Config", onOpen:configHandler, onComplete:configHandler, onChildOpen:configHandler, onChildComplete:configHandler})); _loader.load(); function configHandler(e:LoaderEvent):void { switch(e.type) { case LoaderEvent.OPEN: case LoaderEvent.CHILD_OPEN: Debug.info("File {0}", e.target.name); break; case LoaderEvent.COMPLETE: case LoaderEvent.CHILD_COMPLETE: Debug.info("Complete {0}", e.target.name); break; } } function loadHandler(e:LoaderEvent):void { switch(e.type) { case LoaderEvent.PROGRESS: Debug.info(" Progress {0}", e.target.progress); break; } } In this case, I'm loading a config file with two SWF children loaders the file (Test1 and Test2). Test1.swf and Test2.swf are both the same size - approx. 600K. The Progress is begin displayed for the loader instance, so I would expect that Test1.swf would complete at about 50% progress. Here's what I actually when I execute: [2011-04-15 17:16:54] INFO: File Config [2011-04-15 17:16:54] INFO: Progress 0.9897727272727272 [2011-04-15 17:16:54] INFO: File Test1 [2011-04-15 17:16:54] INFO: File Test2 [2011-04-15 17:16:54] INFO: Progress 0.05419404715887128 [2011-04-15 17:16:54] INFO: Progress 0.15974745522484216 [2011-04-15 17:16:54] INFO: Progress 0.26530086329081304 [2011-04-15 17:16:54] INFO: Progress 0.3708542713567839 [2011-04-15 17:16:54] INFO: Progress 0.4764076794227548 [2011-04-15 17:16:54] INFO: Progress 0.5512355104823917 [2011-04-15 17:16:54] INFO: Progress 0.656133055467522 [2011-04-15 17:16:54] INFO: Progress 0.7610306004526524 [2011-04-15 17:16:54] INFO: Progress 0.8659281454377827 [2011-04-15 17:16:54] INFO: Progress 0.970825690422913 [2011-04-15 17:16:54] INFO: Progress 0.9950067128613332 [2011-04-15 17:16:54] INFO: Complete Test1 [2011-04-15 17:16:54] INFO: Complete Test2 [2011-04-15 17:16:54] INFO: Complete Config [2011-04-15 17:16:54] INFO: Progress 1 So my basic question is why are the open and complete events for Test1 and Test2 get fired at the beginning and end of the load - i.e. why does the complete event for Test1 not occur at approx. 50% into the load (since it accounts for about 50% of the data being loaded). I even tried simulating the download at a slow speed, but no different in the order of events. What am I missing? Thanks!
  8. In reviewing the license for Transform Manager, I just wanted to confirm that if I have a single developer membership in Club Greensock and purchase the Transform Manager, I can use Transform Manager on a commercial website. Thanks!
  9. Hi, I am wondering what the best approach is for handling deferred loading of subloaders specified in an XML file. Basically, I want to have a configuration file that contains references to various loaders (XML and SWF primarily). I wish to set these sub loaders to load=false, so that the requisite loaders are created, but not loaded. Then on an as needed basis I want to load individual or multiple subloaders at various points in my code - this is tied to a pre-loader progress screen. So basically, when I choose to load one or more subloaders using the .load() method, it will show the progress bar based on the combined size of the subloaders I have chosen to load at that time. Think of a multi-level game, where you want to pre-define all the assets ahead of time in a single XML, but defer loading of the necessary information until the level that it is needed. My initial thought was that if I create a queue, assign the base XMLLoader (for the config) to the queue, load the XML and tie the progress bar to the PROGESS and COMPLETE events of the queue, that when I choose to trigger additional loads of the deferred subloaders, this should reactivate the queue events - since ultimately these subloaders are children of the queue. However, this doesn't seem to be the case. My other thought was to collect load the XML with a XMLLoader not associated with a queue, at INIT or COMPLETE capture the subloaders to an array and then when I need to load them, append the required subloaders into a queue and load the queue. Any thoughts on the best approach are appreciated... -J
×
×
  • Create New...