0 Replies Latest reply on May 24, 2006 1:49 PM by MaxVT103

    how to get instance name

    MaxVT103 Level 1
      I was wondering if there was any way to get the instance name of the class to the class without having to pass it in when you create the instance of it. For example, so I can do this:

      var myObject:CustomClass = new CustomClass();

      and then the class knows whats its instance name being used is instead of having to do something like this:

      var myObject:CustomClass = new CustomClass("myObject");