-
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?
-
In my own experience, it's allways been the full exact URL (including the http://...) that works best.
-
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
-
-Iron Myk-
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
-
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)
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|