Skip navigation
Currently Being Moderated

Really need FLEXPERTS on this one... Sandbox violation..

Jan 20, 2011 1:18 PM

Hi all, I need a lot of help.. So what's going on is that I have an area where you have draggable containers (press ctrl key and mousedown initiates drag) with custom components inside of each.  One of the containers contains a "Google Maps" component, as soon as I press ctrl and click it gives me the error velow and does not let me drag the component... any suggestions...??

 

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://###.###.###.###/Name/Project.swf cannot access http://mt0.google.com/vt/lyrs=m@142&hl=en&src=api&x=0&y=0&z=1&s=. No policy files granted access.
    at flash.display::BitmapData/draw()
    at qs.controls::UIBitmap()
    at qs.controls::DragTile/startReorder()

 

Just in case this is my crossdomain policy...

 

 

<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" secure="false" />
<allow-http-request-headers-from domain="*" headers="*" secure="false" />
</cross-domain-policy>
 
Replies
  • Currently Being Moderated
    Jan 20, 2011 1:26 PM   in reply to JoGlez

    UIBitmap is trying to capture the image from the google map, which is not

    allowed.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 20, 2011 1:56 PM   in reply to JoGlez

    The Flash Player security model only allows you to access data on the same domain as the domain from which the SWF file was delivered, unless the server for the other domain from which data will be pulled has a crossdomain.xml file installed on it.

     

    This does not apply for media such as images and video UNLESS you try to access the data of the media, such as the image data you are trying to access. Then you would need a crossdomain.xml file on the server where the image is being delivered from.

     

    If this post answers your question or helps, please mark it as such. Thanks!

    http://www.stardustsystems.com
    http://www.stardustsystems.com/blog
    Adobe Flex Development and Support Services

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 21, 2011 10:09 AM   in reply to JoGlez

    You could try setting visible=false on various display objects.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2012 1:11 AM   in reply to JoGlez

    why dont you share the workaround with us ? i have the same problem here.

     

    I would really apprichiate if you share with us,

    Thanks.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points