Yah just to note casting the object as either a Polygon or a CustomPolygon would have worked, the compiler is trying to help you here letting you know that its not necessarily the case that the target property of the event is the type of thing you're assigning it to (what you did is correct/valid). Casting it as a Polygon is okay since it's an extension of Polygon, casting it as CustomPolygon is okay as well because you can assign a property of some type to an object of that type directly or any sub-class of it. If you were to do that cast statement (saying as Polygon) and it wasn't actually a polygon then the object being assigned would be null.
-- 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/-/OGD0WguEcsIJ. 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.
