Given the following Flash method:
function sendToJava(name:String, ... args) { ExternalInterface.call("sendCommand", name, args); }
How to ensure that ExternalInterface.call () interprets args in its extended form? Right now, if I pass the list to "args", this list is interpreted as a single argument of type "Object []" by ExternalInterface.call (). When the arguments reach Java, I cannot distinguish between multiple arguments separated by commas, against a single argument containing commas as part of its value.
source share