8 Replies Latest reply on Oct 30, 2007 1:11 PM by kglad

    the scope of this in AS3

      I am just trying to understand the scope of this in AS3 for example in AS2

      basicM_btn.onRelease = function() {
      this._visible = false;

      Would have made the button invisible
      In AS3 I was expecting to write the same thing as this

      function clickHandler(event:MouseEvent):void {

      this.visible = false;


      menuA_btn.addEventListener(MouseEvent.CLICK, clickHandler);

      However this sets all of the content on the stage to visible = false
      Is there a difference in the way that this works in AS3

      Thanks for your help