0

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();
3
  • 1
    You don't show how you call javascriptUpdateSettings() from JavaScript, are you aware that you need to call it as a method on a Flash object, like mySwf.javascriptUpdateSettings(), not just javascriptUpdateSettings()? Commented Dec 29, 2010 at 15:19
  • 1
    Showing your javascript would be great help Commented Dec 29, 2010 at 15:25
  • I tried swfobject.javascriptUpdateSettings(),but still the same.. Commented Dec 29, 2010 at 15:37

1 Answer 1

4

Try swfobject.getObjectById("myContent").javascriptUpdateSettings()

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.