Jump to content
Search Community

adamg

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

adamg's Achievements

0

Reputation

  1. Hello, I am trying to preload 5 FLVs and then play all 5 at the same time. I am completely stumped, any help would be really appreciated. Here is my code: import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; //create a LoaderMax named "mainQueue" and set up onProgress, onComplete and onError listeners var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); //append several loaders queue.append( new VideoLoader("IT_01.flv", {name:"mainClip01", estimatedBytes:1900, width:175, height:265, scaleMode:"proportionalOutside", crop:true, container:this, x:20, y:10, autoPlay:false}) ); queue.append( new VideoLoader("IT_02.flv", {name:"mainClip02", estimatedBytes:1900, width:142, height:225, scaleMode:"proportionalOutside", crop:true, container:this, x:200, y:40, autoPlay:false}) ); queue.append( new VideoLoader("IT_03.flv", {name:"mainClip03", estimatedBytes:1900, width:142, height:225, scaleMode:"proportionalOutside", crop:true, container:this, x:340, y:40, autoPlay:false}) ); queue.append( new VideoLoader("IT_04.flv", {name:"mainClip04", estimatedBytes:1900, width:142, height:225, scaleMode:"proportionalOutside", crop:true, container:this, x:40, y:280, autoPlay:false}) ); queue.append( new VideoLoader("IT_05.flv", {name:"mainClip05", estimatedBytes:1900, width:142, height:225, scaleMode:"proportionalOutside", crop:true, container:this, x:200, y:290, autoPlay:false}) ); queue.append( new ImageLoader("sq_frame.png", {name:"photo1", estimatedBytes:500, width:550, height:550, container:this, x:-10, y:2, alpha:100, scaleMode:"proportionalInside"}) ); //start loading queue.load(); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); myProgressBar.scaleX = event.target.progress; } function completeHandler(event:LoaderEvent):void { trace(event.target + " is complete!"); } function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); } stop();
×
×
  • Create New...