0 Replies Latest reply on Nov 25, 2007 1:27 PM by shija03

    PopupManager.createPopup - Security Error

    shija03
      I'm trying to debug my application using trough FLEX builder, and everytime I try to bring a popup using PopupManager, I receive the following error:

      SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/projects/admin/bin/myapp.swf cannot access file:///C:/projects/admin/bin/myapp.html.
      at flash.external::ExternalInterface$/flash.external:ExternalInterface::_initJS()
      at flash.external::ExternalInterface$/call()
      at components::IFrame/set source()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.containers::Panel/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.containers::Panel/mx.containers:Panel::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at components::player/initialize()
      at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
      at mx.managers::SystemManager/addChild()
      at mx.managers::PopUpManagerImpl/addPopUp()
      at mx.managers::PopUpManagerImpl/createPopUp()
      at mx.managers::PopUpManager$/createPopUp()
      at components::Game/::showPopup()
      at components::Game/__btEdit_click()

      In order to debug my application I do not go through a WebServer, but rather through the file:///C:/... access, hence I don't think crossdomain.xml works in this instance.