Hello,

Just wanted to start using the elevation service.

I included map_flex_1_19a.swc in the lib-directory and this code:

private var elevator:Elevation;

...

private function onHolderCreated(event:Event):void
{
        elevator = new Elevation();
        elevator.addEventListener(ElevationEvent.ELEVATION_SUCCESS,
showElevation);

...

But there seems to ben an error on the line elevator = new
Elevation();

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
        at com.google.maps.services::Elevation()

When I change the variable definition to

private var elevator:Elevation = new Elevation();

I get the same error on that line.

What would be going wrong ?

Thanks,
Frank

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