Why calling flash function from javascript fails for me?
Posted
by
Alan
on Stack Overflow
See other posts from Stack Overflow
or by Alan
Published on 2010-12-29T15:12:04Z
Indexed on
2010/12/29
15:54 UTC
Read the original article
Hit count: 185
I'm doing it this way:
...
public function j2fCall()
{
Alert.show( "j2fCall?");
}
public function Main( nav: Navigation )
{
if(ExternalInterface.available)
{
ExternalInterface.addCallback("javascriptUpdateSettings", j2fCall);
}
...
}
But when I call javascriptUpdateSettings
from javascript,only got the error:
javascriptUpdateSettings is not defined
What's wrong above?
UPDATE
I'm embedding swf and call it this way:
swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);
swfobject.javascriptUpdateSettings();
© Stack Overflow or respective owner