0 Replies Latest reply on Jul 23, 2006 5:47 AM by hanif_74

    preloader

    hanif_74
      hi,
      I have three .fla file named " index.fla " , " preloader.fla "," test.fla ".
      for preloader I wrote the following action in index.fla in first frame :

      Preloader.loadMovie("preloader.swf");
      var mcLoader:MovieClipLoader = new MovieClipLoader();
      var listener:Object = new Object();
      listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
      loadbyte=bytesLoaded;
      totalbyte=bytesTotal;
      if(loadbyte>=totalbyte){
      gotoAndStop("next");
      }
      loadpercent = Math.ceil(loadbyte / totalbyte * 100)+ "%";
      }
      mcLoader.addListener(listener);
      mcLoader.loadClip("../../../../Course/bndChanger.aspx?",1);

      I run test.swf via bndChanger.aspx in index.fla.

      the problem is that preloader doesn't run true.
      that means preloader finish so later than running of page.
      what can I do?
      thank for your helps.