8 Replies Latest reply: Dec 12, 2012 9:51 AM by Flex harUI RSS

    SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: cannot access

    RaviDarji

      When we try to print the Google Map API for Flash component, it is throwing the Security Sandbox Violation

       

            SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1 cannot access  http://mt1.google.com/vt/lyrs=m@171000000&hl=en&src=api&x=1&y=1&z=1&s=Gali&flc=x3t. No policy files granted access.

      at flash.display::BitmapData/draw()

       

      To avoid this error we tried to use the alternate API provided by library. But that also causing cross domain issue as it loading some 3d library internally which is not able to access our application.

       

      SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: http://maps.googleapis.com/mapfiles/lib/map_1_20_10_3d.swf cannot access http://ps6143.persistent.co.in:8080/dv/SiteOptimizer/SiteOptimizer.swf/%5b%5bDYNAMIC%5d%5d /1http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1. This may be worked around by calling Security.allowDomain.

      at flash.display::BitmapData/draw()

       

      Please help us in resolving this issue.

       

      Thanks & Regrds,

      Ravi Darji