Jump to content


  • Posts

  • Joined

  • Last visited


0 Newbie
  1. Yeah, it appears that Flash's bandwidth profiler is causing this jumping forward or backward behavior. Do you know other tools for testing the bandwith speed beside sloppy?
  2. Firstly, do you know where can I download the interactive demo from http://www.greensock.com/loadermax-tips/#8? It's not present in the source files at: http://www.greensock.com/as/LoaderMax/Meet_LoaderMax.zip. Secondly, I have 3 loaders (ImageLoader, SWFLoader, MP3Loader) defined in an XML file that loads assets automatically. Although the estimatedBytes is very accurate the progress goes very fast to about 90% then smoothly reaches 100% without jumping forward or backward. Whether I use progress or rawProgress properties to track the loading progress, the outcome is the same. How can I get a smooth progress bar from begginning till end? <?xml version="1.0" encoding="utf-8" ?> <data> <LoaderMax name="bookPages" maxConnections="1" load="true" prependURLs="pages/"> <SWFLoader name="cover_front_out" url="cover_front_out.swf" estimatedBytes="242700" /> <SWFLoader name="cover_front_in" url="cover_front_in.swf" estimatedBytes="15000" /> ... </LoaderMax> <LoaderMax name="tracks" maxConnections="1" load="true" prependURLs="mp3/" > <MP3Loader name="BustedChump" url="BustedChump.mp3" autoPlay="false" estimatedBytes="1376000" /> <MP3Loader name="ChuckedKnuckles" url="ChuckedKnuckles.mp3" autoPlay="false" estimatedBytes="1800000" /> ... </LoaderMax> <LoaderMax name="logos" maxConnections="1" load="false" prependURLs="images/" > <SWFLoader name="uoradea" url="logo.swf" autoPlay="false" estimatedBytes="6330" /> </LoaderMax> <LoaderMax name="backgrounds" maxConnections="1" load="true" prependURLs="images/"> <ImageLoader name="a2.jpg" url="a2.jpg" type="pattern" estimatedBytes="3000" /> <ImageLoader name="bg.png" url="bg.png" type="center" estimatedBytes="15000" /> ... </LoaderMax> </data> LoaderMax.activate([ImageLoader, SWFLoader, MP3Loader]); var queue:LoaderMax = new LoaderMax({name: "mainQueue", maxConnections: 1, auditSize:false, autoDispose:true, onProgress:progressHandler, onComplete: completeHandler, onChildComplete:childCompleteHandler, onError: errorHandler}); queue.append(new XMLLoader("xml/assets.xml", {name:"graphics", estimatedBytes:8476021})); queue.load(); ...
  3. I am trying to upload some graphic assets using XMLLoader and have noticed an unusual behavior concerning the estimatedBytes property. The XML file xml/assets2.xml does contain the estimatedBytes declared for all the xml childs and xml/assets.xml does not. Everything works fine if estimatedBytes is explicit declared, but if I omit it, the preloader bar jumps ahead. Shouldn't work just fine for both cases? Am I doing something wrong? I have uploaded the files so you can take a look. Desktop.zip Edit: I am testing with Flash CS6(simulate download)
  4. Actually make sense now, thank you for the info
  5. Thank you very much, seems like that will do the trick. Also it's very strange why you must call explicitly clone(). Anyway, if you find an explanation for this strange behavior please pass it along.
  6. Hello, I haven't came across yet if it's possible to dispatch the progress of a loading file. I have tried and got an error. The event.target is null !? Error #1009: Cannot access a property or method of a null object reference. For example in my Main.as I have this: preloader = new Preloader(); preloader.x = 200; preloader.y = pStage.stageHeight/2 - _preloader.height; addChild(_preloader); var loader:LoadingClass = new LoadingClass (); loader.addEventListener(LoaderEvent.PROGRESS, function(event:LoaderEvent){ preloader .progress(event.target.progress); }); My LoadingClass.as is: LoaderMax.activate([ImageLoader, SWFLoader, MP3Loader]); queue = new LoaderMax({name: "mainQueue", maxConnections: 1, autoDispose:true, onProgress:progressHandler, onComplete: completeHandler}); queue.append(new XMLLoader("bin/xml/assets.xml", {name:"graphics", estimatedBytes:162315})); queue.load(); private function progressHandler(event:LoaderEvent):void { dispatchEvent(event); } private function completeHandler(event:LoaderEvent):void { trace("loading complete"); }