method importScript

bool importScript(string url,string language);

Argumente

Zurückgegebener Wert

This method attaches a script to the gadget associated with this box. If no gadget is associated with the box the import process will fail.
var box = scene.getBoxById("testGadgetInstance");
if (box)
{
    box.importScript("box://app/scripts/myScript.js", "jscript");
}