A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: getURL without http:// ?

  1. #1
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440

    getURL without http:// ?

    hi. i dont know what the final adress of site will be, so i would like to use adress like ./rejestracja/index.php

    ive made some buttons and i would like to make action getURL

    Code:
    on (release) 
    {  
    getURL('./rejestracja/index.php?adres=news.php', '_blank');  
    }
    gives me error "expecting a >>}<<". so how can i use getURL without http:// ?

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    You probably did something else wrong because the code you posted doesn't generate an error when I try it.

  3. #3
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    hm... everything looks good - there isnt antything to do wrong
    Attached Files Attached Files

  4. #4
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    I thought you used a button object but it's a button component you used.
    You have to use the button component without the on (release). Use only the getURL and it should work fine.
    Code:
    getURL('./rejestracja/index.php?adres=news.php', '_blank');

  5. #5
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    yes, this works. Thans brants :]

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