Open URL in ActionScript 3

No more getUrl() in ActionScript 3.  AS3 makes you type another line or two, but it is not big deal.   

var _url:URLRequest = new URLRequest("http://www.theactionscripter.com/");
navigateToURL(targetURL);

If you want to open your url into an new window you will add "_blank" to the navigateToURL call.

var _url:URLRequest = new URLRequest("http://www.theactionscripter.com/");
navigateToURL(targetURL, "_blank");

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.