I'm using the following code. It works fine with getElementByID but if
I use a OS detection function it stops working.
function getFlashMovie(movieName)
{
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
getFlashMovie('myId').sendToActionsript(str);
The above code does not work whereas the line below is working any Ideas?
document.getElementById('myId').sendToActionscript(str);
Fahim Akhter
Game Developer | White Rabbit Studios | http://apps.facebook.com/feline-frenzy/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders