Make sure you add this to your main swf
Security.allowDomain("*.google.com");
Security.allowDomain("*.googleapis.com");
also, if you're still having problems do a manual policy file load
using Security.loadPolicyFile("urlto/crossdomain.xml");
Make sure you load policy files for all assets and domains, including
your own.
Jonathan
ScribbleMaps.com
On Aug 30, 6:00 pm, Maha <[email protected]> wrote:
> Hi Pamela / Team,
>
> I am experiencing difficulties with "getPrintableBitmap" method from
> "com.google.maps.Map" class. Though I followed the cross domain policy
> as mentioned in the documentation, It throws security error. I found
> the same problem in your demo application as well.
>
> Could you please fix the issue in your demo application and provide
> the solution as well?
>
> Your demo application
> link:http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/PrintableMa...
>
> When clicks the Print button it throws the following error:
>
> SecurityError: Error #2123: Security sandbox violation:
> BitmapData.draw:http://maps.googleapis.com/mapfiles/lib/map_1_16.swf
> cannot
> accesshttp://mt1.google.com/vt/lyr...@130&hl=en&src=api&x=1&y=1&zoom=16&s=Gali.
> No policy files granted access.
> at flash.display::BitmapData/draw()
> at com.google.maps.core::MapImpl/getPrintableBitmap()
> at com.google.maps.wrappers::IMapWrapper/getPrintableBitmap()
> at PrintableMap_fla::MainTimeline/print()
>
> Thanks a lot!!
>
> Cheers!
> Maha
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en.