[jQuery] flashembed API not finding ExternalInterface Callback
I know I should just move on, because my old swfobject thisMovie/
makeCall functions work just fine, but I really want the flashembed
API to work. I've wasted a lot of time just to have cleaner, more
efficient code.
function loadPage(content){
api = flashembed("content_div", {
src:content,
id:"content_swf",
width:585,
height:600,
allowscriptaccess:"always",
swliveconnect:"true"
});
}
this works:
document["content_swf"]["xmlFromNet"]
but this does not:
api["xmlFromNet"] (or api.xmlFromNet)
--------------------------------------------------
alert(api); //[object
HTMLEmbedElement]
alert(api.id); //
content_swf
alert(document["content_swf"]); //[object
HTMLEmbedElement]
alert(document["content_swf"].id); //content_swf
alert(api == document["content_swf"]); //true
api and document["content_swf"] seem to be the same thing but I get
the js error:
"api.xmlFromNet is not a function"
I've tried long timeouts and watched the swf come onto the stage long
before I try to use api. Still no luck.
any clues?