Hi,

I have a contact page containing a Google map that's created when a
user selects the 'Contact' page and then destroyed once the page is
navigated away from. The first time the page is created everything
works fine, but if the 'Contact' page is navigated back to (created a
second time), then i get this error,

[Fault] exception, information=Error: Object not initialized
Execution halted in 'main.swf' ffffffffat 0xExecution halted in
'main.swf' ffffffff (-1)

I've removed everything associated with the Map (all google code) from
the page and everything works fine, but the problem returns once the
Google code has been uncommented. As far as i can see, the Map Object
i create is not being removed properly when my contact page is
destroyed. My destroy() method is definately being called and contains
this code to remove the Map,

if( _map )
{
        _map.removeEventListener( MapEvent.MAP_READY,
mapReadyHandler );
        _map.clearOverlays();
        _map.getPaneManager().removeAllPanes();
        removeChild( _map );
        _map = null;
}

If i watch Charles, if the map hasn't fully loaded, then calls are
still being made to google to load elements of the map, even after
it's been removed. So something appears to be hanging onto the map?
I've checked, but all my listeners are weak reference and are also
being removed at the point of destruction. I've also had a look
through the Docs, but the Map Object doesn't appear to have a
destroy() or remove() method that can be explicitly called?

Anyone got any idea what this could be, any help would be greatly
appreciated as this is starting to make my head hurt!

Also, i'm developing in AS3.

cheers.

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