3 Replies Latest reply on Dec 10, 2007 6:43 AM by kglad

    Dynamic MovieClip Creation: how to use these MC's in OOP?

    AnotherRandomFlasher
      Hello,

      Ok here is what I need to know, to use a movieclip in OOP you go into its advanced settings and set AS 2.0 class to the external class you wish it to use. Simple enough.

      However, I'm using a script to make my movieclips for me :

      for(i=0;i<10;i++){
      _root.createEmptyMovieClip("turret"+i, _root.getNextHighestDepth());
      _root["turret"+i].attachMovie("guns", "guns2", _root.getNextHighestDepth());
      }

      The problem Im having is, how can you link these dynamic MC's to an external class since you cant go into its advanced settings to set its AS 2.0 Class? I tried a line I doubted would work and it didnt:

      _root["turret"+i] = new OutsideClass();

      THanks

      Aaron