Let's suppose you have a SWF, and you're calling callbacks on that SWF from JavaScript. The following works:
document.getElementById('id-of-your-embed').someActionScriptCallback('someJavaScriptCallback')The following doesn't work, and there is no error message:
$('#id-of-your-embed').someActionScriptCallback('someJavaScriptCallback')I often think of $() as a way to use document.getElementById, but since it returns a jQuery shim, some things don't work as expected. This one took me quite a while to figure out.
Comments
$('#id-of-your-embed')[0].someActionScriptCallback('someJavaScriptCallback')
$('#id')[0] or $('#id').get(0)
than it should work