2 Replies Latest reply on Jan 16, 2008 9:52 AM by radixlab

    preload works in firefox, not in ie

    radixlab
      Hi all,
      i create a swf called preload that load an external swf, it works only with firefox and not in ie.
      This is the code in preload.swf:
      import mx.controls.Loader;
      import mx.controls.ProgressBar;
      this.createClassObject(ProgressBar,"my_pb",998);
      this.createClassObject(Loader,"my_ldr",999);
      my_pb.move(350,300);
      my_ldr.move(0,0);
      my_pb.source = "my_ldr";
      var loadListener:Object = new Object();
      loadListener.progress = function(eventObj){
      // eventObj.target è il componente che ha generato l'evento progress,
      // ovvero, il loader.
      my_pb.setProgress(my_ldr.bytesLoaded, my_ldr.bytesTotal); // Visualizza l'avanzamento.
      }
      my_ldr.addEventListener("progress",loadListener);
      my_ldr.scaleContent = false;
      my_ldr.contentPath = "/files/movie.swf"+"?cvc=" + cvc;

      where cvc, is a session coookie.
      I have to do this preload, because movie.swf contain some component that load an application in a flash media server.
      Someone can help me?
      thank you a lot.