getURL Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Atran
    Contributor
    • May 2007
    • 319

    getURL Help

    Hello EveryBody, I am new to ActionScript.
    I make to my flash page a button, I want make the button open a web using getURL commnad.
    See this code:
    [CODE=actionscri pt]
    button1.onRelea se = function(){
    getURL("http://www.adobe.com/", "_blank");
    }
    [/CODE]

    When I export my project to a swf file, and run the swf from my directory, not from flash program. When the swf is running I click my button, flash show to me a messagebox that the url cannot be shown for save, why, but when I run it from flash program, the url shown.
    Can anyone help me to build my web site.
  • kestrel
    Recognized Expert Top Contributor
    • Jul 2006
    • 1071

    #2
    first of all, your sntax is a bit off
    [CODE=actionscri pt]myButton.onRele ase = function()
    {
    getURL("test.ht ml", "_blank");
    };[/CODE]

    are you uploading these files to your website? or are you trying to use them from your computer?

    Comment

    Working...