Yes, that does work too; there's one demo that shows that (VSlider). Glad you worked it out. :)
On Tue, Jul 21, 2009 at 5:29 PM, Joshua Rhoades <[email protected]> wrote: > Thanks. > I started implementing a solution using this method, then decided I didn't > want to have to re-implement some of the Button class functionality using a > Sprite, and so I looked some more and went another route. I put the map and > my buttons in a Panel with layout=absolute with no header and no border. It > seems to work. > > On Mon, Jul 20, 2009 at 7:03 PM, pamela fox <[email protected]> wrote: > >> Hi J- >> You can create a custom control. See the docs here: >> >> http://code.google.com/apis/maps/documentation/flash/controls.html#Custom_Controls >> >> >> <http://code.google.com/apis/maps/documentation/flash/controls.html#Custom_Controls>- >> pamela >> >> >> On Tue, Jul 21, 2009 at 1:35 AM, J. <[email protected]> wrote: >> >>> >>> I'm new to Flash/Flex and the Google MAP API. >>> I want to add a Button on the map and I can't find any examples of how >>> to do this. Can this be done? If so, how? >>> I do NOT want it at a certain LatLng (I've seen those examples). I >>> want it in the upper left or preferably upper center. >>> >>> This ActionScript code adds text in the upper left on the map: >>> var statement:TextField = new TextField(); >>> statement.text = "Hello World!"; >>> map.addChild(statement); >>> >>> However, doing this with a Button does not seem to work. I don't get >>> an error, but I don't see a button. >>> var btn:Button = new Button(); >>> btn.label="Play"; >>> map.addChild(btn); >>> >>> Thanks in advance. >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
