David,
I've been able to track the problem down to flash versions. The problem
is that on Windows flash versions less than 7, and on Mac versions less
than 8, the moviename.getVariable function is not working. The script
below is actually returning a reference to the object correctly. I
added an additional test in my code to see if the getVariable method is
not undefined, and if it is, I prompt the user to download a newer
version of flash. Do you know if there is a list of these type of
incompatabilities anywhere?
Thanks,
Jeff
David Rorex wrote:
On 11/28/05, Jeff <[EMAIL PROTECTED]> wrote:
I'm have trouble finding a good cross-browser script that gets a
reference to a flash movie object.
Here's what I have right now:
function thisMovie(movieName) {
if (typeof(window.document[movieName]) != 'undefined') {
return window.document[movieName];
} else if (typeof(document.getElementById(movieName)) !=
'undefined') {
return document.getElementById(movieName);
} else if (typeof(window[movieName]) != 'undefined') {
return window[movieName];
}
}
What problems are you having with this script exactly? What
browsers/platforms doesn't it work on?
-David R
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders