The following MXML always generates me a [[Dynamic]] error
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:maps="com.google.maps.*">
        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        public function getPrintable(e:MouseEvent):void {
                                map.getPrintableBitmap();
                        }

                ]]>
        </mx:Script>
        <maps:Map3D id="map" key="ABQIAAAA8oFy-
uE7V0TnMsVnCnkNXxRhETwiIcY1LRa1KH92m1re4hBf4RRbEoBOCZf9S0RI42cWwkKaCMBS_A"
left="0" right="0" top="0" bottom="0" />
<mx:Button label="Test Bug" click="getPrintable(event)" />
</mx:Application>

The following mxml doesn't create me an errors.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:maps="com.google.maps.*" initialize="init
(event)">
        <mx:Script>
                <![CDATA[
                        import com.google.maps.MapEvent;
                        import com.google.maps.Map3D;
                        import mx.controls.Alert;

                private function mapReady(e:MapEvent):void {
                        var map:Map3D = e.target as Map3D
                                trace(map.getPrintableBitmap());
                }

                public function init(e:Event):void {
                        var map:Map3D = new Map3D();
                                map.key = "ABQIAAAA8oFy-
uE7V0TnMsVnCnkNXxRhETwiIcY1LRa1KH92m1re4hBf4RRbEoBOCZf9S0RI42cWwkKaCMBS_A"
                                map.setStyle("left", 0);
                                map.setStyle("right", 0);
                                map.setStyle("top", 0);
                                map.setStyle("bottom", 0);

                        Application.application.addChild(map);
                        map.addEventListener(MapEvent.MAP_READY, mapReady);
                }
                ]]>
        </mx:Script>
</mx:Application>


On Sep 13, 8:09 am, "pamela (Google Employee)" <[email protected]>
wrote:
> I have finally replicated an error very similar to the one Ian
> reported, after dragging a simple Flash map, and I have reported that
> internally.
>
> The getPrintableBitmap function processes all the overlays on the map.
> Is it possible that you added something that it did not have access
> to?
>
> I just put together a demo that puts a Map inside a Canvas, dragged it
> around a bit and called getPrintableBitmap, and it does not report an
> error.Ifyou can put together some minimalcodeand steps for
> replication, then I can tellifit's a bug withourcode.
>
> Thanks! - pamela
>
>
>
> On Tue, Sep 8, 2009 at 6:24 AM, Jonathan Wagner <[email protected]> 
> wrote:
>
> > I've actually bumped into a replicatable version of the sandbox error
> > in conjunction with getPrintableBitmap().
>
> > *** Security Sandbox Violation ***
> > SecurityDomain 'http://maps.googleapis.com/mapsapi/publicapi?
> > file=flashapi&url=file%3A%2F
> > %2F*&key=ABQIAAAA8CazDZ3tQvLQ7ZYmuvCagBRuA6HcZ-
> > ESEifxnYtdX1DKmiVVchRYWgKQJvhNOEAByImH-dGCYZx2ug&v=1.16&flc=x3' tried
> > to access incompatible context '.../bin-debug/test.html'
>
> > In order for me to get the error to emerge, I have to drag the map ,
> > and then call getPrintableBitmap(), the error doesn't appear to occur
> > when I first load the map, only after I drag it (doesn't seem to
> > matter how much). I also ran into this, which I have never seen
> > before:
>
> > *** Security Sandbox Violation ***
> > SecurityError: Error #2121: Security sandbox violation:
> > BitmapData.draw:http://maps.googleapis.com/mapfiles/lib/map_1_16_3d.swf
> > cannot access myprojectpath/test.swf/[[DYNAMIC]]/1. This may be worked
> > around by calling Security.allowDomain.
>
> > After further investigation I have discovered this error only seems to
> > occur when I nest the map in either an Image or Canvas,ifI add the
> > map directly to the application, the error doesn't appear to occur.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to