A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [AS3]How to open an URL in the Default Browser from a Flash Standalone Projector .exe

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    3

    Question [AS3]How to open an URL in the Default Browser from a Flash Standalone Projector .exe

    Hi,

    we are developing a small application wih Flash CS3 which will be released as a standalone Flash Projector.exe.

    We want to have a link to our website in the flash application that should open our webpage in the Default Browser of the System.

    We tried:
    PHP Code:
    navigateToURL(new URLRequest("http://www.google.com"),"_blank"); 
    But when I click on that link in our standalone.exe, on my system "ultraedit" gets opened and it tries to open a path on the local system and the webpage adress after that. "C:\Projects\Inflation\http:\\www.google.de".

    What are we doing wrong?

  2. #2
    Member
    Join Date
    Jan 2008
    Posts
    89
    If you use the usual

    on (release) {getURL("http://www.google.com", "_blank");
    }

    That should do it.

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    3
    getURL doesn't work with CS3...

  4. #4
    Member
    Join Date
    Jan 2008
    Posts
    89
    I'm pretty sure it does as i've just recently used it myself when making .exe files using flash cs3.

  5. #5
    Junior Member
    Join Date
    Jan 2008
    Posts
    3
    Thank you Jo,

    when I try to use getUrl in my App i get the following error:

    ReferenceError: Error #1065: Variable getURL is not defined.

  6. #6

  7. #7
    nusphere
    Join Date
    Mar 2009
    Posts
    2

    Flash CS3 + CS4 Tutorial navigateToURL


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center