1 Reply Latest reply on Apr 12, 2007 7:37 AM by kglad

    Simple loadMovie problem

    Brave_Novice
      Hi guys. I have a swf with the script below on one of the buttons:

      on (release) {
      unloadMovie("Empty_mc");
      loadMovie("MathGames.swf", "Empty_mc");
      }

      The problem is, after "MathGames.swf" loads into "Empty_mc", the rotate script - which is on a button in "MathGames" - will not work. The script works fine when published independently (before being loaded into “Empty_mc”). Any ideas?
        • 1. Re: Simple loadMovie problem
          kglad Adobe Community Professional & MVP
          there's no need to use unloadMovie() just prior to using a loadMovie() function on the same target. but that's not the problem.

          you probably have a reference to _root in MathGames.swf that's causing the problem. a quick fix is to use:

          this._lockroot=true; // on the main timeline of MathGames.swf