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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS function crossbrowser issue

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
0
0
RO
Hello guys!

I have this JS function that I use to control a flash movie:

function controlFlashMovie(objElement, strValue){
var objFlash, currentSelection;

objFlash = eval("document." + objElement);
if (objFlash.PercentLoaded() == 100)
{
try{
currentSelection = objFlash.GetVariable("_global.menu_selection"); if(currentSelection != strValue)
{
objFlash.TGotoLabel("_level0.main.movie" + strValue, "pressed");
objFlash.SetVariable("_global.menu_selection", strValue);
}
}
catch(strError)
{
}
}
}

Everything works just fine in IE ... but in Opera and Mozilla this script is not working....Any ideas?

Thanks!


Regards,
Dragos.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top