Hi there-
Is your published movie in the same folder as penguin.swf? If it is, it
should load correctly. I just tested my version and it worked fine from the
local SWF file.

- pamela

On Mon, Dec 15, 2008 at 5:31 AM, FlashAPI <[email protected]> wrote:

>
> While waiting for help, I tried a very simple example. If I comment
> out "icon: loader,", the default marker can appear in both Test Movie
> and the published movie. However, with "icon: loader," the little cute
> penguin can only appear in Test Movie, but not in the published movie.
> Can anybody tell me what is going on here?
>
> =================
> var map:Map = new Map();
> map.key = "ABQIAAAA8T8fI3edd-0zoOSuQWhSzhRVKeUWy9IDPXd5GmtflkvA-Y-
> vqxTA8-Y1B7H53ZBfcQazuXRtbcsgpg";
> map.setSize(new Point(stage.stageWidth, stage.stageHeight));
> map.addEventListener(MapEvent.MAP_READY, onMapReady);
> this.addChild(map);
>
> function onMapReady(event:Event):void {
>        map.setCenter(new LatLng(37.441944, -122.181944), 14,
> MapType.NORMAL_MAP_TYPE);
>        map.removeMapType(MapType.PHYSICAL_MAP_TYPE);
>        map.addControl(new ZoomControl());
>        map.addControl(new PositionControl());
>        map.addControl(new MapTypeControl());
>
>        var  loader = new Loader();
>        loader.load(new URLRequest("penguin.swf"));
>
>        var markerA:Marker = new Marker(
>                new LatLng(37.441944, -122.181944),
>                new MarkerOptions({
>                //      icon: loader,
>                        hasShadow: true
>                })
>        );
>        map.addOverlay(markerA);
> }
> >
>

--~--~---------~--~----~------------~-------~--~----~
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