christ

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Newbie

About christ

  • Rank
    Newbie
  1. I get 6 videos. 6 videos appear in thumbnail and a few seconds after they disappear and reappear. I think that charging is not complete when the 'onComplete' told me that everything was loaded. Thanks for your help Here is my code: var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); for(var i:Number=0; i < 6; i++){ queue.append( new VideoLoader("videos/"+theVideo+".mp4", {name:"myVideo"+i, container:this, width:180, height:120, scaleMode:"stretch", bgColor:0x000000, autoPlay:false, volume:0, smoothing:true})); } queue.load(); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); } function completeHandler(event:LoaderEvent):void { for(var v:Number=0; v < nbrVideos; v++){ LoaderMax.getContent("myVideo"+v).x = 50 + (v * (LoaderMax.getContent("myVideo"+v).width + 20)); LoaderMax.getContent("myVideo"+v).loader.gotoVideoTime(startPreviewThumb, false); // true = lecture automatique var recupVideo:ContentDisplay = LoaderMax.getContent("myVideo"+v); // on cree des bouton sur les clips videos LoaderMax.getContent("myVideo"+v).addEventListener(MouseEvent.CLICK, function(e:Event):void{jeClicSurVideo(e.target.name)}); } trace(event.target + " is complete!"); }