1 Reply Latest reply on Sep 28, 2011 11:03 AM by djsuperfive

    Error with PopupManager.createPopup and parentApplication

    djsuperfive

      Hi Flex'rs

       

      I have an issue with PopUpManager.createPopUp when used from a sub-component of my main application. I would like the popup to be centered within the main screen so I set

      MyClass(PopUpManager.createPopUp(UIComponent(this.parentApplication), MyClass, true));

       

      When I do that I have a very strange runtime error:

       

      Error: Skin for AddCommentsWindow4289.SkinnableContainerSkin4292.contentGroup.HGroup4294.commentsEnTA cannot be found.

        at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.5.1\frameworks\ projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:698]

        at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.5.1\fra meworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]

        at spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]

        at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]

        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]

        at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7189]

        at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\frameworks\projects\ spark\src\spark\components\Group.as:2037]

        at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:1628]

        at spark.components::Group/setMXMLContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark \components\Group.as:633]

        at spark.components::Group/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark \components\Group.as:855]

        at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]

        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]

        at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7189]

        at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\frameworks\projects\ spark\src\spark\components\Group.as:2037]

        at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:1628]

        at spark.components::Group/setMXMLContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark \components\Group.as:633]

        at spark.components::Group/set mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:573]

        at spark.components::SkinnableContainer/set mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\SkinnableContai ner.as:657]

        at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4.5.1\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:1050]

        at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.5.1\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:1078]

        at spark.components::SkinnableContainer/createChildren()[E:\dev\4.5.1\frameworks\projects\sp ark\src\spark\components\SkinnableContainer.as:885]

        at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]

        at components.display.criteria::AddCommentsWindow/initialize()

        at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.5.1\frameworks\projects\fra mework\src\mx\managers\systemClasses\ChildManager.as:189]

        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2139]

        at mx.managers::SystemManager/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \managers\SystemManager.as:1759]

        at mx.managers::SystemManager/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\m anagers\SystemManager.as:1742]

        at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\PopUpManagerImpl.as:340]

        at mx.managers::PopUpManagerImpl/createPopUp()[E:\dev\4.5.1\frameworks\projects\framework\sr c\mx\managers\PopUpManagerImpl.as:229]

        at mx.managers::PopUpManager$/createPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\PopUpManager.as:139]

        at components.display.media::LibraryImage/iconCommentsClick()[/Users/Maxime/Sites/MyProjectW orkflow/src/components/display/media/LibraryImage.mxml:128]

        at components.display.media::LibraryImage/___LibraryImage_IconComments1_click()[/Users/Maxim e/Sites/MyProjectWorkflow/src/components/display/media/LibraryImage.mxml:174]

       

      The sub-component is compiled within a swf Module that is loaded into the main Application.

      Can you help ?

       

      Thank you