1 Reply Latest reply on Apr 19, 2006 9:42 AM by Newsgroup_User

    setting variable on load in a loaded clip

    Level 7
      Hi,

      how can I set a variable on a load event. In my case both variables
      don't get into the loaded movie. Is it because I use lockroot inside the
      movieclip?


      onClipEvent(load){

      if (this.getBytesTotal() < 1000){
      sitemap = "navi2.xml";
      this.loadMovie("navi.swf");
      }else{
      sitemap = "navi2.xml";
      trace(sitemap);
      }
      }

      TIA