#41 external javascript callbacks not working

version-2
open
nobody
None
5
2009-05-29
2009-05-29
Anonymous
No

I've been trying to use some of the exposed chart methods like reload, load, etc. and they don't seem to be working.

I don't know actionscript, but it looks like in main.as line 138

this code

<code>
I've been trying to use some of the exposed chart methods like reload, load, etc. and they don't seem to be working.

I'm not familiar with actionscript, but it looks like in main.as line 138

this code

<code>
private function addCallback(functionName:String, closure:Function): void {
// the debug player does not have an external interface
// because it is NOT embedded in a browser
if (ExternalInterface.available)
ExternalInterface.addCallback("get_version", getVersion);
}
</code>

should become

<code>
private function addCallback(functionName:String, closure:Function): void {
// the debug player does not have an external interface
// because it is NOT embedded in a browser
if (ExternalInterface.available)
ExternalInterface.addCallback(functionName, closure);
}
</code>

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks