try this:
"../" to come out a folder.
complete code would be:
onClipEvent (load) {
this.p = 4;
this.lnk = "../Support.html";
}
Main Topics
Browse All TopicsIm a newbie in Flash authoring tool and need a help in following case:
I have a source Flash .FLA file. This file contains an animated picture or flash. However, when produce this file to .SWF format and put it on a web page, it purpose is that when a mouse hover over it to show some animation. On mouse click, it should instruct browser to load a specific .html file.
I dont know anything about ScriptAction language, but I did text search using Adobe Flash CS4 on that file to find a text of .html and I found the exact script as shown below:
onClipEvent (load) {
this.p = 4;
this.lnk = "Support.html";
}
The above script works only if Support.html file is in root-site folder AND the .html file that contains the .SWF is in root-site folder!
Considering my root site is like www.abc.com and I have a sub-folder called xxx; If I change the word Support.html in above script to /Support.html then insert the .SWF file in any .html file located in the xxx sub-folder of the root-site, then on mouse click browser will try to load the file Support.html from that sub-folder not from root-site. Like this:
http://www.abc.com/xxx//Su
Where it should be, AFAIK, http://www.abc.com/Support
What should I type in the script as a path? I need to know what relative path to type.
Thank you for ant reply &
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
To: mharfouch
Using entire URL means using absolute path and this is not good for a site being moved from domain to another.
To: aneeshchopra
Using ../ means going 1 level up in directory. This is not good when I have several pages distributed in several sub-directories.
I will keep this discussion open to receive more comments. Meanwhile, I'd like to add:
I know in Linux that the tilde mark "~" refer to home directory of a user and in DOS that the slash mark "/" refer to root directory. Using these principles, what is the mark that refer to root-site that Adobe Flash CS4 understand?
I'm using Dreamweaver CS4 to edit .html pages and Adobe Flash CS4 to edit .fla and produce .swf files. So how DW can show broken links contained in .swf file?
Thanks for those commented and any new comments
Business Accounts
Answer for Membership
by: mharfouchPosted on 2009-04-29 at 20:58:53ID: 24266842
just put the entire URL