A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: need help with getURL

  1. #1
    Junior Member
    Join Date
    May 2003
    Location
    Rhode Island, USA
    Posts
    15

    need help with getURL

    I've only just skimmed the tip of the iceberg when it comes to actionscripting and I wanted to know: Is it possible to use the getURL statement with a relative link or does it have to be an exact URL?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    In my own experience, it's allways been the full exact URL (including the http://...) that works best.

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    Rhode Island, USA
    Posts
    15
    Thanks. Is there anyway at all to use a relative link? I'm trying to stay away from exact links because the site i'm building is for my school and their URL sucks basically. it starts with http://ewg.k12.ri.us/shs

    I'd rather not have to type that in hundreds of times

  4. #4
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    you could always create a variable to hold the value of the URL..

    for example:
    Code:
    site = "http://ewg.k12.ri.us/shs"

    then whenever you need that url,
    Code:
    on(release) {
    getURL(site);
    }

    -myk

  5. #5
    Junior Member
    Join Date
    May 2003
    Location
    Rhode Island, USA
    Posts
    15
    I'm basically a newb when it comes to scripting, by typing in

    code = "http://ewg.k12.ri.us"

    does that automatically declare the variable?
    and if so then when i use the getURL code would it be like:

    getURL(site & /programs/sports.xhtml)

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    68
    try this
    Code:
    getURL(site add "/programs/sports.xhtml");

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