To invoke a URL in Flash Builder is unlike any other web scenario. I use the following function to launch web sites and applications.
protected function LaunchOne($cmd:String):void
{
var urlReq:URLRequest = new URLRequest($cmd);
navigateToURL(urlReq, "_blank");
}
To use the function use the following calling sequence.
LaunchOne(“http://archbrooks.com”);
The above calling sequence will pass the URL to the function and the function does the remainder of the heavy lifting.
No comments:
Post a Comment