Hmm hopefully this doesn't double post as I just posted a reply but
tried marking my code with tags but maybe this forum doesn't support
that not sure.
Anyway you're calling
Map.clearOverlays()
and
Map.addOverlay()
you need something like
myMap.clearOverlays();
myMap.addOverlay();
where myMap is the id in MXML or the instance name in AS
var myMap:Map=new Map();
or
<map:Map id="myMap"/>

you should be calling the methods on the instance not the class
itself, static methods are called on the class itself and are as far
as I understand it persistent throughout the life cycle of you're
running application.

Let me know if you're still confused, good luck,
Shaun

On Sep 25, 6:48 am, neonwiredpixels <[email protected]>
wrote:
> "Call to a possibly undefined method clearOverlays through a reference
> with static type Map."
> "Attempted access of inaccessible method addOverlay through a
> reference with static type Map"
>
> What could cause a map object to not recognise the clearOverlays and
> addOverlay function?
--~--~---------~--~----~------------~-------~--~----~
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