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

RTE when component is added to FxContainer at runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1.Run attached file or build the following
      <?xml version="1.0" encoding="utf-8"?>
      <FxApplication height="800" width="800"
      xmlns="http://ns.adobe.com/mxml/2009"
      xmlns:mx="http://ns.adobe.com/mxml/2009"
      xmlns:comps="comps.*"
      ><layout> <VerticalLayout/> </layout>
      <Script>
      <![CDATA[
      import comps.*;
      ]]
      >
      </Script>

      <FxContainer id="fc" />
      <Button label="Add component to empty container" click="fc.addItem(comps.EllipseBasic)" />

      <FxContainer id="fc2"><layout> <VerticalLayout/> </layout>
      <Button label="Add comp. to this container" click="fc2.addItem(comps.EllipseBasic)" />
      </FxContainer>

      <FxContainer id="fc1"><layout> <VerticalLayout/> </layout>
      <Button label="button1"/>
      <Button label="Add comp. to this container" click="fc1.addItem(comps.EllipseBasic)" />
      </FxContainer>
      </FxApplication>
      2.Click on any "Add .. " button
      3.RTE when adding component to FxContainer

      Actual Results:
      TypeError: Error #1034: Type Coercion failed: cannot convert comps::EllipseBasic$ to flash.display.DisplayObject.
      at mx.components::Group/itemAdded()
      at mx.components::Group/addItemAt()
      at mx.components::Group/addItem()
      at mx.components::FxContainer/addItem()
      at bugFxContainer/___bugFxContainer_Button4_click()

      Expected Results:

      Workaround (if any):

      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: