Jump to content
GreenSock

kopies

Members
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Newbie
  1. Thank you very much for solving my problem.. Btw, I change the progress loader w/ the loader bar and it work well. Until 100% then the mainMovie.swf loaded. Haha. You are so cool !!!
  2. Hi, I am newbie, just first time using this. I want to ask. I get trouble with LoaderMax. I'm using queue Loader and SWF Loader to load my asset. import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; import flash.display.Sprite; import flash.display.MovieClip; var _progressDisplay:ProgressCircleLite; LoaderMax.activate([imageLoader, SWFLoader, VideoLoader]); var urls:Array = [ "informasi/informasi.jpg", "informasi/studio1.jpg", "informasi/studio2.jpg", "informasi/studio3.jpg", "informasi/studio4.jpg", "informasi/studio5.jpg", ... up to 100 pict ... "galeri6/gallery_1/Images00008.jpg", "galeri6/gallery_1/Images00008.jpg", "galeri6/gallery_1/Images000010.jpg"]; var queue:LoaderMax = LoaderMax.parse(urls, {name:"mainQueue",onComplete:completeHandler, onprogress:progressHandler, onerror:errorHandler}, {autoPlay:true}); queue.append( new SWFLoader("mainMovie.swf", {name:"childClip", estimatedBytes:3000, container:this, autoPlay:true}) ); LoaderMax.prioritize("mainQueue"); queue.load(); _progressDisplay = new ProgressCircleLite({radius:26, thickness:4, trackColor:0xFFFFFF, trackAlpha:0.25, trackThickness:4, autoTransition:false, smoothProgress:0}); this.addChild(_progressDisplay); _progressDisplay.mouseEnabled = false; _progressDisplay.x = 69; _progressDisplay.y = 389; _progressDisplay.addLoader(queue); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); } function completeHandler(event:LoaderEvent):void { trace(event.target + " is complete!"); var SWF:ContentDisplay = LoaderMax.getContent("childClip"); addChild(queue.content) removeChild(_progressDisplay); } function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); } Those all image are my asset that going to be cached (as website asset) and mainmovie.swf is my AS3 main program that will play after the load progress done. So far, it load until mainmovie.swf, well displayed. but I found this error and the progress display stuck at 99%.. Error: Error #2099: The loading object is not sufficiently loaded to provide this information. at flash.display::LoaderInfo/get width() at com.greensock.loading.display::ContentDisplay/_update() at com.greensock.loading.display::ContentDisplay/set rawContent() at com.greensock.loading.core::DisplayObjectLoader/_initHandler() at com.greensock.loading::SWFLoader/_init() at com.greensock.loading::SWFLoader/_rslAddedHandler() at flash.display::DisplayObjectContainer/addChild() I hope someone can help me plz. thanks. tesP.zip
×