At 09:00 PM 4/12/2009, you wrote:
At 08:23 PM 4/12/2009, you wrote:
It would look more like this:

<mx:LinkButton id="myLink" label="My   Url" click="myLinkUrl();" />


And the AS:

private function myLink():void
{
     var myUrl:URLRequest = new URLRequest("http://www.myUrl.com";);

navigateToURL(myUrl, "_blank");

}


That should do it if you are just wanting a URL button.

So I can't change the destination programmatically, then? It has to be hard-coded?


Oh never mind -- I'm an idiot. I just created a global String variable called myURL, and change the value of that variable to whatever I need it to be. Then it's simply:

var urlRequest:URLRequest = new URLRequest (myURL);

Sorry -- I guess I'm not thinking totally clearly because this is such a new language for me.

L.






-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------





No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.287 / Virus Database: 270.11.54/2055 - Release Date: 04/12/09 13:14:00



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to