0 Replies Latest reply on Oct 3, 2009 2:56 PM by Michael19871987

    Resizable Windows


      Hi guys, i'm tryin to write a function. I wanna have a resizable window within flash. But somehow it doesn't work.


      this.rightborder.addEventListener(MouseEvent.MOUSE_DOWN, o1);
      this.rightborder.addEventListener(MouseEvent.MOUSE_UP, o2);
      function o1(event:MouseEvent):void{
          this.rightborder.addEventListener(MouseEvent.MOUSE_MOVE, o4);
      function o2(event:MouseEvent):void{
          this.rightborder.removeEventListener(MouseEvent.MOUSE_MOVE, o4);


      function o4(event:MouseEvent):void{
          this.width = this.rightborder.x;


      Can u tell me why?


      thanks in advance