Highlighted

Air Flex Sandbox Security.Error Umapper

New Here ,
Jul 09, 2015

Copy link to clipboard

Copied

Hey Guys I try to start Umapper Api on Flex Air aplication but all the time im getting following Error

SecurityError: Error #3207: Application-sandbox content cannot access this feature.
  at flash
.system::Security$/allowDomain()
  at com
.umapper.umap.core::UMap()
  at com
.umapper.flex.umap::UMapComponent/createChildren()
  at mx
.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
  at mx
.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
  at mx
.core::UIComponent/addChildAt()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
  at spark
.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037]
  at spark
.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
  at spark
.components::Group/setMXMLContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633]
  at spark
.components::Group/set mxmlContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:573]
  at spark
.components::SkinnableContainer/set mxmlContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:657]
  at spark
.components::SkinnableContainer/createDeferredContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1050]
  at spark
.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1078]
  at spark
.components::SkinnableContainer/createChildren()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:885]
  at spark
.components::Application/createChildren()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Application.as:1504]
  at mx
.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
  at spark
.components::Application/initialize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Application.as:1355]
  at spark
.components::WindowedApplication/initialize()[E:\dev\4.y\frameworks\projects\airspark\src\spark\components\WindowedApplication.as:1834]
  at
TracksApp/initialize()
  at mx
.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
  at mx
.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:359]
  at mx
.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:3057]
  at mx
.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()
  at mx
.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
  at flash
.events::EventDispatcher/dispatchEventFunction()
  at flash
.events::EventDispatcher/dispatchEvent()
  at mx
.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\preloaders\Preloader.as:542]
  at flash
.utils::Timer/_timerDispatch()
  at flash
.utils::Timer/tick()

But I already tried many solution I found on internet forums I added:

Security.allowDomain("*");

on the begging of my code and added: -use-network=true in flex compiler settings but nothings helps



Heres the Programm code:


<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
  
xmlns:s="library://ns.adobe.com/flex/spark"
  
xmlns:mx="library://ns.adobe.com/flex/mx"
  
xmlns:umap="com.umapper.flex.umap.*"
  
xmlns:openstreet="com.umapper.umap.providers.openstreet.*"
  
width="1009" height="327"  
  
creationComplete="init()">

  
<fx:Declarations>
  
<!-- Platzieren Sie nichtvisuelle Elemente (z. B. Dienste, Wertobjekte) hier -->
  
</fx:Declarations>
  
<fx:Script>
  <![CDATA[
  public function init():void{
  Security.allowDomain("*");
  }
  ]]>
  
</fx:Script>


  
<umap:UMapComponent controls="*" apiKey="API_KEY" secretKey="SECRET_KEY">
  
<umap:provider>
  
<openstreet:OpenStreetProvider />
  
</umap:provider>
  
</umap:UMapComponent> 
</s:WindowedApplication>

TOPICS
Development

Views

438

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Air Flex Sandbox Security.Error Umapper

New Here ,
Jul 09, 2015

Copy link to clipboard

Copied

Hey Guys I try to start Umapper Api on Flex Air aplication but all the time im getting following Error

SecurityError: Error #3207: Application-sandbox content cannot access this feature.
  at flash
.system::Security$/allowDomain()
  at com
.umapper.umap.core::UMap()
  at com
.umapper.flex.umap::UMapComponent/createChildren()
  at mx
.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
  at mx
.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
  at mx
.core::UIComponent/addChildAt()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
  at spark
.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037]
  at spark
.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
  at spark
.components::Group/setMXMLContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633]
  at spark
.components::Group/set mxmlContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:573]
  at spark
.components::SkinnableContainer/set mxmlContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:657]
  at spark
.components::SkinnableContainer/createDeferredContent()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1050]
  at spark
.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1078]
  at spark
.components::SkinnableContainer/createChildren()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:885]
  at spark
.components::Application/createChildren()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Application.as:1504]
  at mx
.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
  at spark
.components::Application/initialize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Application.as:1355]
  at spark
.components::WindowedApplication/initialize()[E:\dev\4.y\frameworks\projects\airspark\src\spark\components\WindowedApplication.as:1834]
  at
TracksApp/initialize()
  at mx
.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
  at mx
.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:359]
  at mx
.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:3057]
  at mx
.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()
  at mx
.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
  at flash
.events::EventDispatcher/dispatchEventFunction()
  at flash
.events::EventDispatcher/dispatchEvent()
  at mx
.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\preloaders\Preloader.as:542]
  at flash
.utils::Timer/_timerDispatch()
  at flash
.utils::Timer/tick()

But I already tried many solution I found on internet forums I added:

Security.allowDomain("*");

on the begging of my code and added: -use-network=true in flex compiler settings but nothings helps



Heres the Programm code:


<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
  
xmlns:s="library://ns.adobe.com/flex/spark"
  
xmlns:mx="library://ns.adobe.com/flex/mx"
  
xmlns:umap="com.umapper.flex.umap.*"
  
xmlns:openstreet="com.umapper.umap.providers.openstreet.*"
  
width="1009" height="327"  
  
creationComplete="init()">

  
<fx:Declarations>
  
<!-- Platzieren Sie nichtvisuelle Elemente (z. B. Dienste, Wertobjekte) hier -->
  
</fx:Declarations>
  
<fx:Script>
  <![CDATA[
  public function init():void{
  Security.allowDomain("*");
  }
  ]]>
  
</fx:Script>


  
<umap:UMapComponent controls="*" apiKey="API_KEY" secretKey="SECRET_KEY">
  
<umap:provider>
  
<openstreet:OpenStreetProvider />
  
</umap:provider>
  
</umap:UMapComponent> 
</s:WindowedApplication>

TOPICS
Development

Views

439

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 09, 2015 0
New Here ,
Jul 09, 2015

Copy link to clipboard

Copied

no developer here who got an idea what could be wrong in the Code.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 09, 2015 0
New Here ,
Jul 11, 2015

Copy link to clipboard

Copied

I'm getting the same error, looked on the internet for hours to get it working. I'll let you know if got it working.

With friendly greetings

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 11, 2015 0
New Here ,
Jul 11, 2015

Copy link to clipboard

Copied

Ok got the mistake it seems it is a bug in the Umap Api so i will work now with flex flash application

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 11, 2015 0
New Here ,
Jul 11, 2015

Copy link to clipboard

Copied

Found out the same. Happy programming

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 11, 2015 0