views:

31

answers:

3

I use the following jQuery code to access functions in my SWF (FP 10.1 SWF embedded via SWFObject):

$('#FlashApp')[0].someFunc();

This works fine in every browser.. except for Internet Explorer (surprise!). Surely, the point of jQuery is to make this code work across all browsers? I'd really rather not write extra code to check for IE.

How can I talk to my SWF in a browser independent way?

+1  A: 

Dousn't sound like a jQuery problem. Try the following in IE to see if you get the same results:

document.getElementById('FlashApp').someFunc();
Matt Huggins
A good observation, but it doesn't really help the OP.
musicfreak
A: 

you need External Interface

http://blog.flexexamples.com/category/externalinterface/

Eugene
+1  A: 

It turns out that the issue was due to IE not being able to talk to an invisible SWF.

Franky-D