ah figured it out, i needed to add an event listner to the button.
public function clickThis(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.twitter.com"),
"_blank");
}
theLink.addEventListener(MouseEvent.MOUSE_UP,
clickThis);
addChild(theLink);
would have thought flex automatically gives you this option but you
have to define it when you link a button programmatically.
cheers,
aj
On Dec 13, 5:25 pm, Ajoy Thomas <[email protected]> wrote:
> Hey everyone,
> I have been playing with the excellent google
> maps API for couple of weeks now. I am using customContent to populate
> the infoWindow. The customContent is coming from an external .as file
> and for some reason I can't find the "handle" to link a LinkButton
> this is my external as code:
>
> var theLink:LinkButton = new LinkButton();
> theLink.label = "Reply / Add you own";
>
> //theLink.click <-- this doesn't work, i have
> imported import mx.controls.LinkButton;
>
> var c:Canvas = new Canvas();
> c.width=280;
> c.height=130;
>
> c.addChild(theLink);
> addChild(c);
>
> what am i missing? 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.