Open a link using Flex 2.0

Red-48x48 Some times we need to open a URL in a new window from our Flex applications.At Flex 1.5 we can use getURL method,as opposed,Flex 2.0 can use navigateToURL to realize it. Here is a straight and easy solution, The code is below:

var url:URLRequest = new URLRequest(”http://ntt.cc/”); 
navigateToURL(url,”_blank”); 

And that’s it! I love when you can make something with only a few lines of code

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Reddit
  • Technorati
  • StumbleUpon
  • Twitter
RSS Enjoy this Post? Subscribe to Ntt.cc

RSS Feed   RSS Feed     Email Feed  Email Feed Follow us Follow us
You can leave a response, or trackback from your own site.

2 Responses to “Open a link using Flex 2.0”

  1. Arturo Murillo says:

    If you public one example plez brink the complete solution

  2. sachin says:

    Thanx Dude, this blog gave me simple n fine way to open separate url …….. thanx again .. keep it up!!!!!!!!!!!

Leave a Reply