To add custom controls to the map I never extended the ControlBase
class. I just added UIComponents on top of the Map object in the
display stack. Recently I decided to change these control components
so they would extend from ControlBase so they would act as a genuine
Map Control object. In doing so I noticed that none of my controls
showed up on the map. I looked at the custom control example
http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/ControlCustom.html
But that showed me that a button was manually created using Sprite and
Shape objects. It does not use mx,control.Button objects.
Then I found this old issue, 
http://code.google.com/p/gmaps-api-issues/issues/detail?id=429
But this issue was already fixed. Although the last comment confuses
me. It says "allows you to use Flex
components anywhere (controls, info windows)". It does not say that it
is indeed possible to use mx.control.* components in custom classes
extending from ControlBase. The title does suggest that it now
possible to use mx.control.* components in custom classes extending
from ControlBase class. I tried several ways but buttons, labels and
other UIComponent objects do not show up when the custom control is
added to the Map. I cannot find any more documentation about custom
controls except issue 429 and the example using Sprite and Shape
objects. So the question is, can UIComponents like a Button indeed be
used as a children of a custom control implied by issue 429
Thank you.

Brgds,

Eduard

--

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