1 Reply Latest reply on Jan 13, 2009 1:41 PM by kglad

    how to retreive the instance name of a class

    chrisatflash Level 1

      Does anyone know how you can retreive the instance name of a class ?

      For example my class is:

      class Example{

      public static var createdClasses:Array;

      function Example() {
      trace("how can i trace the original name of the class ?");


      and in my fla file i have:

      var someName:Example = new Example();
      var anotherName:Example = new Example();

      So, what i would like to know is, the name of the class.. in this case it is 'someName' and 'anotherName'.

      Does anyone know how?