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

Javascript to Flash

Status
Not open for further replies.

LiquidPixel

Programmer
Dec 12, 2006
11
US
Greetings,

I am trying to call a method in Flash via JS

Works like charm in Safari, FF...suprise!!! not in IE

Heres my code.


###############################

var flash;

window.onload = function()
{
if(navigator.appName.indexOf("Microsoft") != -1) {
flash = window["Main"];
}else {
flash = window.document["Main"];
}
}


function doSomething()
{
flash.trigger();
}

document.onmousemove = doSomething;


###############################


Your help is greatly appreciated

LP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top