Using Flash header in HTML frames

I am a newbie to flash and need some help using HTML frames.  We currently have a flasher header in our website with menus.  Each time you click on a menu option the new page loads, and the flash header reloads.  In order to keep the flash header from reloading (since the header never changes), I decided to use frame.  I placed the flash header in frame1, and my html pages in a bottom frame.  
The problem I am having is getting the flash menu to open a hyperlink in the bottom frame.  (the bottom frame is named "main".  
The flash action on the menu options is as follows:

getURL("resources.html", "main");

So, the goal is to have my flash header (with menu hyperlinks) in one frameeach time, and my html pages in a bottom frame that change as I click on the menu flash header items.  (the flash header should not reload)

Any help would be appreciated.  
kharoldsenAsked:
Who is Participating?
 
kharoldsenConnect With a Mentor Author Commented:
Doesn't appear to be an easy answer for this one.  I will close the question.
0
 
section25Commented:
What browser are you using to view it with?

Your first page that sets up the framing should have both a "name" and an "id" as in:

<frameset rows="10%,90%" frameborder="yes" border="0" framespacing="0">
  <frame src="top_page.htm" name="top" id="top" frameborder="NO">
  <frame src="bottom_page.htm" name="bottom" id="bottom" frameborder="NO">
</frameset>

Different browsers use different ways to address the frame name.

Then your flash button action just needs to address it by name. As in:

on(release){
    getURL("next_page.htm","bottom");
}

0
 
section25Commented:
If you have changed your flash and recompliled a new swf file, make sure you are loading a fresh copy of the swf and not one that has been cached. The Flash player in your browser tends to use the cached copy even when there is a new one out there.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
kharoldsenAuthor Commented:
section25 - thanks for the comment.  I certainly thought it should be that easy, but something isn't right.  Here is the code on my initial page:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled 1</title>
</head>

<frameset framespacing="0" border="0" frameborder="0" rows="297,*">
      <frame name="header" scrolling="no" noresize="noresize" target="main" src="header.html">
      <frame name="main" src="index1.2.html">
      <noframes>
      <body>

      <p>This page uses frames, but your browser doesn&#39;t support them.</p>

      </body>
      </noframes>
</frameset>

</html>

In my flash page I am using the following for the hyperlink:

on (release) {
      getURL("netmanage.html", "main");
}

When I run this link it opens in a new window with the netmanage.html page, rather than the same page in the "main" frame.


0
 
kharoldsenAuthor Commented:
Sorry, I forgot to mention that I have tried both IE and Firefox, both do the same thing.
0
 
section25Commented:
Hmmm... I've cut and pasted your code above and it works fine for me. There must be something else you are overlooking.

If you want, I can copy all of the code I've got working to a location where you can download it and try it for yourself. But is basically its just a copy of what you have above.

I'll see if I can think of anything else that may be causing it.
0
 
section25Commented:
Here is the sample I was talking about.

http://www.section25.net/ee/kharoldsen/frametest.html

You can download all the files from here:

http://www.section25.net/ee/kharoldsen/
0
 
kharoldsenAuthor Commented:
Thanks for testing this.  I am confused on what I may be doing wrong.  I have uploaded our flash file and the entire site to http://www.fresnonetworks.com/ee/.  If you want to download the portal.zip file and take a look I would appreciate it.  The start page I am working with is index1.htm.  I think the only link that I have pointed to the "main" frame is the "managed technical services" wording in the middle of the flash file.
0
 
kharoldsenAuthor Commented:
I just double checked the flash file that I uploaded.  All of the menu links are pointing to the "main" frame.
0
All Courses

From novice to tech pro — start learning today.