4 Replies Latest reply on Apr 11, 2008 5:56 PM by grimcracker

    Modifying a resizing of NativeWindow

      I have an app that I would like to let the user resize vertically but not horizontally. I listen for the NativeWindowBoundsEvent.RESIZING event, then cancel the event and attempt to manually set the height of the NativeWindow to what the user was trying to set it to, but ignore the width change:

      private function onWindowResizing(event:NativeWindowBoundsEvent):void {
      if (event.afterBounds.width != event.beforeBounds.width) {
      event.currentTarget.height = event.afterBounds.height;

      But instead the window doesn't resize at all. I have to be missing something obvious but I don't know what it is.