1 Reply Latest reply on Mar 8, 2011 8:19 AM by kglad

    Minimize button???

    esbekken

      I cant see to figure out what is wrong with this code.

       

      minimize.buttonMode = true;
      minimize.addEventListener(MouseEvent.CLICK, mini);
      function mini(e:MouseEvent):void{

       

          NativeApplication.nativeApplication.minimize()
      }

       

      i get the error:

       

      Scene 1, Layer 'Actions', Frame 1, Line 105    1061: Call to a possibly undefined method minimize through a reference with static type flash.desktop:NativeApplication.