function prepareExternalInterface(app) { app.ExternalInterface.myJSFunction = function(numericArg, textArg) { alert('Got some params from Puzzles: ' + numericArg + ' and ' + textArg); } }
function runCode(app) { app.ExternalInterface.myJSCallback('Hello, Puzzles!', 80); }