I have three frames in a frameset (topFrame, leftFrame, and mainFrame)
my flash menu is in the leftFrame, and it is leftportion.swf
I have it working now in IE, but the solution doesn't seem to work in Firefox. I want the pages to cause the flash menu
to change frames when they load (someone clicks the link to 'home', and when the page 'home.htm'
loads, it sends a message to leftportion.swf that says "GotoFrame")
the buttons are in an instance called "nav" on the main timeline of my swf.
I have the following in the body tag of my leftframe htm page (leftside.htm):
---------------------------------------------
<script language="JavaScript"><!--
function my_menuMove(frame) {
flashfile.TGotoFrame("_level0/nav",frame);
}
//--></script>
---------------------------------------------
I also made sure to add id="flashfile" in the object tag, name="flashfile" in the embed tag, and swLiveConnect="true" also in the embed tag (all in the leftside.htm)
on the pages that are sending the (GotoFrame) number, I have this: (this number is for the home page)
---------------------------------------------
<body onLoad="javascript:top.leftFrame.my_menuMove(2)";>
---------------------------------------------
as I said, it works great in IE, but in Firefox it will not work (and produces an error in the javascript console that says "error: flashfile is not defined")
I am not a code writer, so please keep that in mind with any suggestions
thanks much in advance for any help.
my flash menu is in the leftFrame, and it is leftportion.swf
I have it working now in IE, but the solution doesn't seem to work in Firefox. I want the pages to cause the flash menu
to change frames when they load (someone clicks the link to 'home', and when the page 'home.htm'
loads, it sends a message to leftportion.swf that says "GotoFrame")
the buttons are in an instance called "nav" on the main timeline of my swf.
I have the following in the body tag of my leftframe htm page (leftside.htm):
---------------------------------------------
<script language="JavaScript"><!--
function my_menuMove(frame) {
flashfile.TGotoFrame("_level0/nav",frame);
}
//--></script>
---------------------------------------------
I also made sure to add id="flashfile" in the object tag, name="flashfile" in the embed tag, and swLiveConnect="true" also in the embed tag (all in the leftside.htm)
on the pages that are sending the (GotoFrame) number, I have this: (this number is for the home page)
---------------------------------------------
<body onLoad="javascript:top.leftFrame.my_menuMove(2)";>
---------------------------------------------
as I said, it works great in IE, but in Firefox it will not work (and produces an error in the javascript console that says "error: flashfile is not defined")
I am not a code writer, so please keep that in mind with any suggestions
thanks much in advance for any help.