Shame on me, developing on a Mac and ignoring IE. Now I have to go
back and figure out all the IE issues. But here's one where Google has
been zero help to me, so I'm appealing to the jQuery community.
I'm using jquery.ufo.js to unobtrusively embed Flash objects. Works
great on all flavors of Firefox, on Safari, and it might even work in
IE, but I'm getting exceptions as follows:
// in $(document).ready()
$(window).resize(function(){
try{
if($('#mainmenu')[0].callAS) { // <== undefined in IE, function
everyplace else
$('#mainmenu')[0].callAS($(window).width(), 90); // callAS
is a Javascript function provided on Flash objects
}
} catch(e) {
alert('caught resize exception: ' + e.name
+ ". Error message: " + e.message);
}
});
The problem I'm facing is that the only stuff I can dig up on callAS
is that it is defined on the embedded Flash object and it is meant to
allow me to call ActionScript functions from Javascript.
I'm hoping someone has tripped over this and that the solution is
obvious (except to me). It doesn't seem to be an issue with the
plugin; rather it seems to be with the Flash object itself, and I have
the latest version installed. This happens on IE 6 and IE 7 with the
most recent Flash players installed.
Thanks!
Steve