3 Replies Latest reply on Feb 24, 2007 7:05 PM by abeall

    Instantiate an AS2 class which is a MovieClip?

    abeall Level 3
      I have a simple class which extends MovieClip and requires one constructor argument, we'll call Box. This class is associated to a MovieClip in the library. I can't for the life of me figure out how to actually instantiate it at runtime:

      new Box('hello world'); // doesn't work, the MovieClip is never attached on stage
      attachMovie('Box',getNextHighestDepth()); // attaches, but doesn't pass constructor argument

      How should this be done?