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
开发者_JAVA百科
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();
Try swfobject.getObjectById("myContent").javascriptUpdateSettings()
精彩评论