Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash, frameset, and script on page load help needed

Status
Not open for further replies.

Damaged1

IS-IT--Management
Joined
May 23, 2003
Messages
4
Location
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top