Hi Ian

OMG thank you sooo much for helping and patients with this newbie, guys like 
you that help us ROCK!!!!

My work flow is select a country XML, Select a scale XML and each country 
can have 3 scales so I have a crap load of xml sheets :)

One last question.

if I want to chage the selected block's properties ie the color how would 
I reference that in the loop body.
I have set up an array : 
private var boxSelected:Array = new 
Array(false,false,false,false,false,false,false,false,false,false,false,..............

Now my thinking is each pocket is like a switch on and off. so when I select 
a block it will change to true.

so my event is if false blue if true green.

I have set up the 2 functions holding the color info.

private function changePolygonColorOn(polygon:Polygon):void
{
var newColorOn:Number = 0x1dfa0c;
polygon.setOptions(new PolygonOptions({fillStyle:new 
FillStyle({color:newColorOn})}));
}
 private function changePolygonColorOff(polygon:Polygon):void
{
var newColorOff:Number = 0x666666;
polygon.setOptions(new PolygonOptions({fillStyle:new 
FillStyle({color:newColorOff})}));
}

I tried this but not working and no errors either lol

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

  } 
} 

If I can get this working I owe you big time.

Again thank you so much for your time and effort.

-- 
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/-/JFzIwNR_FhkJ.
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