Mathew Easow Jacob’s Blog–India

a enthusiast…developer…on technology,RIA,flex,web,startup….

URL Link in Flex Application

Posted by easow83 on April 6, 2008

  You have  a user click on a link ,button, label
  whatever… from within a Flex application and have it take the user to a
  non-Flex, regular web page within their browser.. It’s probably a
  simple answer but I’m still getting up to speed your Flex!!!…….

try this

<mx:Button label=”Click Here” click=”navigateToURL(new
URLRequest(‘htp://mathewjacob.wordpress.com’),’_mine)” />

4 Responses to “URL Link in Flex Application”

  1. dave said

    thats great but what why does it break when you have variables in your url such as

  2. dave said

    ok it did not take the code I pasted but if you have a url with variables it seems that when you have more then one and use the & it breaks

  3. Gabbyy said

    hi good site thanks http://peace.com

  4. Ritwick said

    use &amp; in place of &amp, i.e. url encode the get variable portion (PHP urlencode function).

    For Example:

    http://www.example.com?var1=6&var2=8

    will become

    http://www.example.com?var1=6&amp;var2=8

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>