I am getting this following error for this code.
Please refer this example:
I am getting around 6 errors stating as “Type was not found or was not a compile time constant: MapEvent”
I have named the files as FlexAPIGoogleMaps.mxml and the ActionScript as MapsEvent.as.
I registered in Google for API key and inserted that in API and added flex.swc in the library using properties.
Still getting the same error.
check that you have the following line
a quick way to make sure is to enter the colon : after the variable name and start typeing the type name (eg MapEvent), then pick it from the code-completion list as it appears. This does not just fill in the line for you, it also adds the necessary import statement.