Hmm what's the container you're trying to put the map into, I just dropped 
it right in the application I also tried with a s:Group but that worked fine 
as well, double check a couple of things first off start with blank project 
and just import the maps swc and try to include the map directly in the 
application in no container.  Also, post what version of the Flex SDK your 
using I tried with both 4.0 and 4.1 and it worked with both I haven't tried 
4.5 yet.  If you check out this page, at the very bottom they explain how to 
make a custom view stack and part of that is using metadata to declare the 
default content should be of type IVisualElement if that's the case for 
whatever container your using then you'd have to pass it something that is a 
visual element (UIComponent the old base class for visual components 
implements this interface).  I've seen a couple of spots where people said 
this was caused by a copy paste where some unwanted invisible characters 
were causing the error so code up the simple case manually.

Pasted what I've tried below, I'm unable to replicate:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
   xmlns:mx="library://ns.adobe.com/flex/mx"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:maps="com.google.maps.*"
   layout="{new VerticalLayout()}">

<fx:Script>
<![CDATA[
import com.google.maps.MapEvent;

import spark.layouts.VerticalLayout;

protected function 
map1_mapevent_mappreinitializeHandler(event:MapEvent):void
{
// TODO Auto-generated method stub
}
]]>
</fx:Script>
<s:Group>
<maps:Map3D 
mapevent_mappreinitialize="map1_mapevent_mappreinitializeHandler(event)"
key="1234"
sensor="false"/>
</s:Group>
<s:SkinnableContainer>
<maps:Map3D key="1234"
sensor="false"/>
</s:SkinnableContainer>
<mx:Accordion>
<!-- without NavigatorContent wrapper fails with:
The children of Halo navigators must implement INavigatorContent
-->
<s:NavigatorContent label="Map 1">
<maps:Map3D key="1234"
sensor="false"/>
</s:NavigatorContent>
<s:NavigatorContent label="Map 2">
<maps:Map3D key="1234"
sensor="false"/>
</s:NavigatorContent>
</mx:Accordion>
</s:Application>

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