Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23355

Unable to close window

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.3 (Release)
    • None
    • mx: Window
    • None
    • Affected OS(s): Windows
      Affected OS(s):
      Language Found: English

    Description

      Steps:
      1. Create custom mxml component extending Window
      2. Put a lot of content there ex. 200 <mx:Canvas width="100%" height="100%"/>
      3. Instantiate class open & close
      var customWindow:CustomWindow = new CustomWindow();
      customWindow.open();
      customWindow.close();

      Actual Results A:
      windows is not closed

      Actual Results B:
      with more content there is chance that one a while I'll get error on app start (in this case I was closing splash window)
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.core::Window/enterFrameHandler()[\frameworks\projects\airframework\src\mx\core\Window.as:3064]

      //FRAMEWORK CODE
      private function enterFrameHandler(e:Event):void
      {
      if (frameCounter == 2)
      {
      removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
      _nativeWindow.visible = _nativeWindowVisible; // <--- HERE _nativeWindow is null

      Expected Results:
      window will close correctly

      Workaround (if any):
      override close method and check if window is already initialized

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: