2 Replies Latest reply on Jan 24, 2010 6:53 AM by roshni79

    SWF in Firefox - Type Coercion failed: cannot convert mx.skins.halo to mx.core.IUIComponent

    roshni79

      Hello all,

       

      I am using Flex Builder IDE and my flex application runs on Internet Explorer without any errors. The same application when captured on Mozilla Firefox (version:3.0.15), comes up with an error

       

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.skins.halo::PanelSkin@31cca61 to mx.core.IUIComponent.

       

       

      The debugger points at line 1539 of Panel.as which goes like

       

      1537:     var lastChild:IUIComponent = IUIComponent(getChildAt(numChildren - 1));
      1538:     if (lastChild is ControlBar)
      1539:     {

       

      I am including the entire stack trace below. Anyone please tell me what could be wrong.

       

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.skins.halo::PanelSkin@31cca61 to mx.core.IUIComponent.
          at mx.containers::Panel/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\proj ects\framework\src\mx\containers\Panel.as:1539]
          at mx.core::Container/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\core\Container.as:2589]
          at mx.containers::Panel/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\sr c\mx\containers\Panel.as:1056]
          at mx.core::UIComponent/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx \core\UIComponent.as:5370]
          at mx.core::Container/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2526]
          at com.videoconf.view::ControlHeaderView/initialize()[C:\Documents and Settings\DOMAIN12\My Documents\Flex Builder 3\Videoconference\src\com\videoconf\view\ControlHeaderView.mxml:0]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\UIComponent.as:5267]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\Container.as:3305]
          at mx.core::Container/addChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2217]
          at mx.core::Container/addChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\cor e\Container.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\core\Container.as:3681]
          at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\core\Container.as:3493]
          at mx.core::Container/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\core\Container.as:2589]
          at mx.core::UIComponent/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx \core\UIComponent.as:5370]
          at mx.core::Container/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2526]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\UIComponent.as:5267]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\Container.as:3305]
          at mx.core::Container/addChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2217]
          at mx.core::Container/addChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\cor e\Container.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\core\Container.as:3681]
          at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\core\Container.as:3493]
          at mx.core::Container/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\core\Container.as:2589]
          at mx.core::UIComponent/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx \core\UIComponent.as:5370]
          at mx.core::Container/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2526]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\UIComponent.as:5267]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\Container.as:3305]
          at mx.core::Container/addChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2217]
          at mx.core::Container/addChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\cor e\Container.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\core\Container.as:3681]
          at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\core\Container.as:3493]
          at mx.containers::Panel/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\proj ects\framework\src\mx\containers\Panel.as:1528]
          at mx.core::Container/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\core\Container.as:2589]
          at mx.containers::Panel/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\sr c\mx\containers\Panel.as:1056]
          at mx.core::UIComponent/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx \core\UIComponent.as:5370]
          at mx.core::Container/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2526]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\UIComponent.as:5267]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\core\Container.as:3305]
          at mx.core::Container/addChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2217]
          at mx.core::Container/addChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\cor e\Container.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\core\Container.as:3681]
          at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\core\Container.as:3493]
          at mx.containers::ViewStack/instantiateSelectedChild()[C:\autobuild\3.2.0\frameworks\project s\framework\src\mx\containers\ViewStack.as:1140]
          at mx.containers::ViewStack/commitProperties()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\containers\ViewStack.as:664]
          at mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framewor k\src\mx\core\UIComponent.as:5807]
          at mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\fr amework\src\mx\managers\LayoutManager.as:539]
          at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:689]
          at Function/http://adobe.com/AS3/2006/builtin::apply()
          at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
          at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]