ok here is what I have done.

I have created the class CustomPolygon :) no problems there

but I get 2 other error messages. in the clickBlock function

var block:Polygon = e.currentTarget;

1118: Implicit coercion of a value with static type Object to a possibly 
unrelated type com.google.maps.overlays:Polygon. FugroG.mxml /FugroG2/src line 
179 Flex Problem

I have changed the 
"var block:Polygon = e.currentTarget;" to 
" var block:Polygon = e.currentTarget as Polygon;"
Not sure if that is right but it resolved the error.

and 

Alert.show(block.obj.id.toString());

1119: Access of possibly undefined property obj through a reference with 
static type com.google.maps.overlays:Polygon. FugroG.mxml /FugroG2/src line 
180 Flex Problem

Not sure but think obj and id is not pulling from CustomPolygon.

Thank you so mush for your patience 




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