Turned out that I needed to set ApplicationDomain to the current application in the loaderContext. Fixed.

On 06/07/06, Angus Johnson < [EMAIL PROTECTED]> wrote:
Me again :)

So I have a Flex 2 (final) application that loads in the Adobe Dashboard example as a sub app. This is done using the SWFLoader class and setting it as a child into a canvas object. The first time it loads, everything is fine. However, if I remove it from the canvas and then try to reload it I get a 1034 error. I've confirmed it is removed as a child and even waited for it to be unloaded.

Is this a bug?

Cheers
Angus

Dashboard.swf - 763,756 bytes after decompression
httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200]
completeHandler: [Event type="complete" bubbles=false cancelable=false eventPhase=2]

TypeError: Error #1034: Type Coercion failed: cannot convert mx.controls::[EMAIL PROTECTED] to mx.controls.ButtonBar .
    at mx.skins.halo::ButtonBarButtonSkin/mx.skins.halo:ButtonBarButtonSkin::updateDisplayList()
    at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\skins\ProgrammaticSkin.as:418]
    at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594]
    at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation ()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:646]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789]
    at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732]


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to