Hi to everybody!.

I need to know how to do a custom info window with a form inside. I
have seen the follow example:

http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/TabNavigatorInfoWindow/srcview/index.html

..but just appear a blank InfoWindow without the TextInput and "OK"
Button.

Here is my code:

/*----------------------------------------------------------------*/
var latLng:LatLng = evento.latLng;
var marker:Marker = new Marker(latLng);
var options:InfoWindowOptions = new InfoWindowOptions({customContent:
new TestClass(),
                                                        customOffset: new 
Point(0, 10),
                                                        drawDefaultFrame: true,
                                                        width: 300,
                                                        height: 160});
marker.addEventListener(MapMouseEvent.CLICK,
function(e:MapMouseEvent):void {
        marker.openInfoWindow(options);
});
mapaBusqueda.googleMap.addOverlay(marker);

/*----------------------------------------------------------------*/

And my custom content (TestClass) is:

public class TestClass extends UIComponent{
        public function TestClass(){
                var hbox:HBox = new HBox();
                var button:Button = new Button();
                button.label = "OK";
                hbox.addChild(new TextInput());
                hbox.addChild(button);
                addChild(hbox);
        }
}

Thank you for your time!
--~--~---------~--~----~------------~-------~--~----~
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