I have the same problem, you can find a solution ??

this is a part of my code

//before i hava a code to load and customize the map options, thats
code works fine if i quit this part, and only make an
map.addOverlay(markerX);

var subteload = 0;
function onClick($event:MouseEvent):void{
        if (subteload==0){
                subteload = 1;
                trace("cargo");
                map.addOverlay(markerD);
                map.addOverlay(markerE);
                map.addOverlay(markerF);
                map.addOverlay(markerG);
                map.addOverlay(markerH);
                map.addOverlay(markerI);
                map.addOverlay(markerJ);
                map.addOverlay(markerK);
        }
        else if(subteload==1){
                trace("descargo");
                subteload = 0;
                map.removeOverlay(markerD);
                map.removeOverlay(markerE);
                map.removeOverlay(markerF);
                map.removeOverlay(markerG);
                map.removeOverlay(markerH);
                map.removeOverlay(markerI);
                map.removeOverlay(markerJ);
                map.removeOverlay(markerK);
        }
}
btn_subtes.addEventListener(MouseEvent.CLICK, onClick);
}

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