Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL problem

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
I made a text string,
and I an twhen people click on it
another page out of my site is loaded.
I want to use the url box in text
properties.
I don't want to type "http...." everytime, I want the path to be relative to where I place the file.
How can I do this ?
I've tried ./flash/d&d.html (because thats the file in that dir) but flash changes it into Can anyone help me ? Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Something like this maybe?

http_root="site_path="myfolder/";

getURL(http_root+site_path+"myfile.html",_blank);

However if the files you want are local to your site/directory you're working in you should be able to access them simply with something like:

getURL("myFile.html",_blank);
 
Yes, that I know.
But there is also a textbox in the property window where you can simply type in the url of a dynamic text box.
so not with actionscript, just by using the flash GUI.
Do you see what I mean ? Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top