3 Replies Latest reply on Jun 12, 2007 3:59 PM by kglad

    Converting AS2 to AS3

    SymTsb Level 2
      I have a few custom classes that I built in AS2 that use createEmptyMovieClip(). I'd like to mod these over to AS3 and as a result, I need to find the way around the absence of createEmptyMovieClip since it was removed in AS3. I noticed we did get a new MovieClip class. What I'm wondering is (based on what I've read on the class), is if this code does the same thing....

      AS2
      var _mc:MovieClip = _root.createEmptyMovieClip("my_mc");
      var _mc2:MovieClip = _mc.createEmptyMovieClip("my_2mc");

      AS3
      var _mc:MovieClip = new MovieClip();
      var _mc2:MovieClip = new MovieClip();
      _mc.addChild(_mc2);
      addChild(_mc);