I’m using
<mx:LinkButton label="www.google.com" click="navigateToURL(new URLRequest(event.currentTarget.label.toString()))" />
to open a browser window to display the website on the label of my LinkButton. However I cannot correctly pass the link.. you see the problem:
file://localhost/..myapp/bin-debug/www.google.com
thanks
The problem you’re having is that you didn’t add “http://” to the beginning. Most browsers can adjust for that because they’re built to assume you mean http:// if you leave it out – but Flash Player won’t adjust for that, since in theory you could be referring to a file on your hard drive or whatever.
Either add the http:// to your label or to your URLRequest.