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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
RobConnect With a Mentor Owner (Aidellio)Commented:
try this:

on(press) {
    getURL("Gallery.htm", "_blank");
}
0
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
chitchcockAuthor Commented:
I will give it a shot.  Thx
0
 
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
 
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
All Courses

From novice to tech pro — start learning today.