0 Replies Latest reply on Aug 18, 2006 1:53 AM by unixseb

    MovieClipLoader

    unixseb
      Hello world,
      i'm facing a strange problem with the MovieClipLoader.
      I've got 2 fla, lets call them master and servant.
      from master i'm loading servant using a moviecliploader and use the onloadinit event to access a variable in servant.
      Localy, all work perfectly but as soon as i put my files on a http server, the variable in servant is undefined if servant is not in the browser cache (but give the good value when servant is in browser cache).
      any idea on how to fix that ??

      servant code :
      var isplayer=true;

      master code:

      var mcl=new MovieClipLoader();
      var lsnt=new Object();
      this.createEmptyMovieClip("trgmc",this.getNextHighestDepth());
      lsnt.onloadinit=function(mc){
      trace(mc.isplayer);
      }
      mcl.addlistener(lsnt);
      mcl.loadClip('servant.swf',trgmc)

      so first time i load master i have "undefined" in trace,
      second time and other times i have "true" in trace

      I'm confused