Quantcast
Viewing all articles
Browse latest Browse all 2010

Air Flex Sandbox Security.Error Umapper

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()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]  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()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]  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()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2843]  at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2723]  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>
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>