Select to view content in your preferred language

ExternalInterface       SecurityError: Error #2000: No active security context.

499
0
03-16-2011 05:09 AM
binduk_p
New Contributor
While calling

ExternalInterface.addCallback("addMapWell",addMapWell);

where my  addMapWell function is ,
public function addMapWell(lat:Number,long:Number):Graphic
  {
   var map_X:Number = long;                
          var map_Y:Number = lat;
                        var attributes:Object = { "ranking": Math.random() };
   graphic = new Graphic(new MapPoint(map_X,map_Y), null, attributes );
   graphicsLayer.add(graphic);
     
          return graphic;
  }

I am getting the error
SecurityError: Error #2000: No active security context.
at flash.display::Stage/get stageFocusRect()
at flash.external::ExternalInterface$/_objectToJS()
at flash.external::ExternalInterface$/_toJS()
at flash.external::ExternalInterface$/_objectToJS()
at flash.external::ExternalInterface$/_toJS()
at flash.external::ExternalInterface$/_objectToJS()
at flash.external::ExternalInterface$/_toJS()
at flash.external::ExternalInterface$/_callIn()
at Function/<anonymous>()
Could any one help?
Tags (2)
0 Kudos
0 Replies