1 Reply Latest reply on Mar 6, 2007 5:51 PM by kglad

    'this' Keyword and Buttons

      If I create a simple flash document, draw a rectangle, convert it to a movie clip, give the movie clip an instance name, then put this code on it:


      on (release) {
      trace (this._name);

      I get a debug window with whatever the instance name is.

      If I change the movie clip to a Button object and apply the same actionscript to it I get nothing, or a null response. Why can't I get the Button's instance name the same way I can with the movie clip?