LiquidPixel
Programmer
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
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