flash help geturl virtual directory
flash help geturl virtual directory
- Started
- Last post
- 3 Responses
- sidrascal
can any one tell me how I code getURL to virtual directories
so I don't have to change all my flash files when I move the site to the live server. I.E.:-
getURL("http://www.oegen.co.uk/p...to
getURL("~portfolio/client1.aspx...
hope someone can help or I might get rather upset
cheers
- sidrascal0
lol I couldn't see wood f trees.
thanks
too many late nights and tight deadlines
- kdn0
A simple way would be to code a base URL in the root e.g.
_root.baseUrl = "http://www.yourbasesite.com/";
Your links would look like:
getURL(_root.baseUrl + "portfolio /client1.aspx")
Then just change _root.baseUrl = "" when you're ready to go live.You could also set this via flash variables or have flash work out if it's running on a web site and change the links automatically...