Got it working :D

Had the statements firing in the wrong order

gridBlock.addEventListener(MapMouseEvent.CLICK, function(e:Event):void 
{
var clickedBlock = e.currentTarget;
var labelS:String;

for each (var item:Object in gridBlocks)
{ 
    if (item.polygon == clickedBlock) 
{ 
     Alert.show("You clicked on " + item.label);
 labelS = clickedBlock;
 Alert.show(labelS);
 
 if(boxSelected[0] == false){ 
 boxSelected[0] = true;
 changePolygonColorOn(item.polygon); 
 
 }
 else {
 
 boxSelected[0] = false;
 changePolygonColorOff(item.polygon );
 }  
     break;   
 
  }  
}   
 });

Again thank you soooooo MUCH!!!!! wouldn't be able to have done this with 
out the help ;-)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api-for-flash/-/p4zM1LuzS90J.
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