5 Replies Latest reply on Jun 13, 2007 7:37 AM by kglad

    Script access for loaded SWFs in Flash CS3

    Kees_Kist Level 1
      In ActionScript 2 I would do the following:


      var loader:MovieClipLoader=new MovieClipLoader();
      var listener:Object=new Object();
      loader.addListener(listener);

      listener.onLoadInit=function(m:MovieClip) {
      m.something="12345";
      }

      loader.loadClip("foo.swf",placeholder);


      What is the equivalent for this in ActionScript 3? I can load a MovieClip with the Loader class, but I don't know how to get or set one of the variables in the root timeline.