Hello there,

I´ve read the tutorials on developing for air for android using Flash
builder, using the exact same code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
<mx:states>
<mx:State name="State1"/>
<mx:State name="menustate"/>
</mx:states>
<maps:Map xmlns:maps="com.google.maps.*" id="map"
mapevent_mapready="onMapReady(event)" width="100%" height="100%"
url="http://code.google.com/apis/maps/"; key="secret ;)" sensor="false"/>
<mx:Script>
<![CDATA[

import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.MapMouseEvent;

private function onMapReady(event:Event):void {

this.map.addEventListener(MapMouseEvent.CLICK, onMapClick);
}

private function onMapClick(event:MapMouseEvent):void {

}
]]>
</mx:Script>
</mx:WindowedApplication>


The follow errors show up:
- Cannot resolve attribute 'mapevent_mapready' for component type
com.google.maps.Map. helloworld.mxml /helloworld/src line 7 Flex Problem
- Initializer for 'height': percentages are not allowed here.
helloworld.mxml /helloworld/src line 7 Flex Problem
- Initializer for 'width': percentages are not allowed here.
helloworld.mxml /helloworld/src line 7 Flex Problem

Being new to flex, I don't really know what it means. The google maps
SWC should be imported correctly(I did choose the flex one).
Any idea's?

Thanks in advance

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