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

RTE when using PopUpManager.addPopup for component whose current parent is Spark container

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • PopUp Manager
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Build 13518

      Steps to reproduce:

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
      creationComplete="handleCC();">

      <fx:Script>
      <![CDATA[
      import mx.managers.PopUpManager;

      protected function handleCC():void
      {
      var app:Application = this;

      button.addEventListener(MouseEvent.CLICK,function (event:Event):void

      { PopUpManager.addPopUp(popup,app,true); }

      );
      }

      ]]
      >
      </fx:Script>

      <s:Group id="popup" width="100" height="100" />

      <s:Button id="button" label="Popup" />

      </s:Application>

      Actual Results:

      RTE: Error: removeChild() is not available in this class. Instead, use removeElement() or modify the skin, if you have one.
      at spark.components::Group/removeChild()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\Group.as:1923]
      at mx.managers::SystemManager/addChildAt()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:1595]

      Expected Results:

      No RTE. Perhaps SystemManager could check to see if the parent has removeElement and use that if appropriate.

      Workaround (if any):

      Add MX container around element to be popped up
      Another workaround would be to call removeElement() on the parent of the component before calling addPopUp().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: