3 Replies Latest reply on Feb 26, 2009 12:43 PM by kglad

    Attached MC loses scope

      I'm loading an external swf (intro.swf) into my main movie (test.swf). Strange enough the loaded movie seems to live in it's own universe. It doesn't see any vers in the main movie.

      Mind you: Only in Flash Lite this problem occurs, in Flahs player it works fine.

      Consider this: Take two fla's:
      * test.fla
      * intro.fla

      In frame one of "test.fla" I have this script:
      // SCRIPT TEST.FLA
      _global.test = "Where am I?"
      var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());
      var mcLoader:MovieClipLoader = new MovieClipLoader();
      mcLoader.addListener(this);
      mcLoader.loadClip("intro.swf", container);
      stop();
      // END SCRIPT TEST.FLA

      In frame one (or any other frame) of "intro.fla" I have this script:
      // SCRIPT INTRO.FLA
      trace (_global.test);
      stop();
      // END SCRIPT INTRO.FLA

      It traces 'undefined' when compiled in Flash Lite (2.0, 2.1, 3.0, 3.1), it works fine when compiled in Flash Player version x.

      Any Idea's?