dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: GetURL command

  1. #1
    Guerilla Records
    Join Date
    Dec 2002
    Posts
    32

    GetURL command

    Hi,

    I'm trying to create a flash page where you enter a word into an input box then click a button... that button then takes you to:

    "http://www.website.com/(input)/index.html"

    with (input) being the text they entered, can anyone tell me how i would go about doing this?

    I understand how to get the button to navigate to a specified url but how would i tell it to go to the address above with the (input) text in there?

    Thanks,

    Murph.
    Jonathan Murphy
    Guerilla Records

    http://www.guerilla-records.com

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    So input is only a folder? Or any full web site?

  3. #3
    Guerilla Records
    Join Date
    Dec 2002
    Posts
    32
    (input) would be a folder on a web server,

    i.e. www.flashkit.com/board/index.php

    i have www.website.com/(input)/index.html

  4. #4
    Senior Member
    Join Date
    Aug 2003
    Posts
    163
    on(release){
    getURL("http://www.website.com/"+_root.inputText+"/index.html","_blank")
    }

  5. #5
    Guerilla Records
    Join Date
    Dec 2002
    Posts
    32
    Thanks a lot, that's perfect... exactly what i needed.

    Cheers,

    Murph
    Jonathan Murphy
    Guerilla Records

    http://www.guerilla-records.com

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    What happens if I type imput?

    Shouldn't you check the input for valid only folders, before calling the getURL?

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