How do i pass three arguments using external interface in flash to a java script function and get back output and display it in flash?
import flash.external.ExternalInterface;
var para:Array = new Array();
send_btn.addEventListener(MouseEvent.CLICK, clickListener);
function clickListener(eventObj:Object ):void {
para.push(mean.text);
para.push(std.text);
para.push(points.text);
trace("click > " + para);
var output =ExternalInterface.call("calc",int(para[0]),int(para[1]),int(para[2]) );
out.text = output;
}
this is the code i am using to call a function calc which takes three arguments in java script, is this the right way of doing it and how can i get arguments back from javascript and display them in flash