I have developed a swf website and want to link to a html page in the same web folder

I have a swf website which is self contained in a folder.  Within the folder, I created a standalone html page to highlight pictures.  How do I put a link in the swf that opens a seperate html page?  Don't need to embed it, I just need it to open in a seperate windows.  Thx
chitchcockAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

scrathcyboyCommented:
as long as it is in the same folder, this is the link you want --
<A href="file.html" target="_blank">file.html</A>
0
scrathcyboyCommented:
The target = _blank opens a new window, the file.html is the file name you want to open, and as long as it is in the same directory, you do not need any paths or slashes.  If however the file is in a directory under the current, then you use href="foldername/filemhtml" .  IF the file is in a folder on PAR with the current, then you would use href="../otherdir/file.html".

The presence of absence of the first slash, and the double dots are crucial to finding the right directory.
0
chitchcockAuthor Commented:
I will give it a shot.  Thx
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

chitchcockAuthor Commented:
No luck.  I created a script command in swish with a button and added it but no go.  The script attached to the text "Click for picture gallery" is:

on (press)  {
}
<A href="Gallery.htm" target="_blank">Gallery.htm</A>

0
RobOwner (Aidellio)Commented:
try this:

on(press) {
    getURL("Gallery.htm", "_blank");
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scrathcyboyCommented:
<A href="Gallery.htm" target="_blank">Gallery.htm</A>

That link will work in NORMAL HTML.  Check your capitalization, on the server VS. the local system.  As a general rule, do NOT use capitals in file names, unless you can be certain the upload preserves them.

Also make sure the file is in the public_html directory on the server.  If the capitals, permissions and file locations are correct, the link WILL WORK, period.

As tagit said, your syntax for an event is wrong -- the function is ONCLICK -- onClick getURL (gallery.htm)  -- you should be using the onClick function if you are calling the URL with JS, but if it is a normal HTML click, then the link is fine as you wrote it, but with the correct capitalization.
0
chitchcockAuthor Commented:
Thanks guys.  I am using this in SWISH and tagit was correct, the code as he entered it worked perfectly in scripting mode of that particular application.  Much regards.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.