passing arguments in Externalinterface.call

2.1k Views Asked by At

How would I pass these two arguments into Actionscript 2's externalinterface.call?

name: 'go'
params: {}

Why does this not work?

ExternalInterface.call("eventaction",({name: ‘go’,params: {}}));
1

There are 1 best solutions below

1
On BEST ANSWER

Use the object literal syntax for each argument:

ExternalInterface.call("eventaction", {"name": "go"}, {"params": {} });