diff --git a/examples/acScripts/ControlACs.js b/examples/acScripts/ControlACs.js index c0d5043e26..ba066d9750 100644 --- a/examples/acScripts/ControlACs.js +++ b/examples/acScripts/ControlACs.js @@ -190,7 +190,7 @@ function mousePressEvent(event) { sendCommand(i, STOP); } else if (loadIcon[i] === toolBars[i].clicked(clickedOverlay, false)) { input_text = Window.prompt("Insert the url of the clip: ",""); - if(!(input_text === "" || input_text === null)) { + if (!(input_text === "" || input_text === null)) { clip_url = input_text; sendCommand(i, LOAD); } @@ -211,7 +211,7 @@ function mousePressEvent(event) { sendCommand(i, STOP); } else if (loadIcon[i] === toolBars[i].clicked(clickedOverlay, false)) { input_text = Window.prompt("Insert the url of the clip: ",""); - if(!(input_text === "" || input_text === null)) { + if (!(input_text === "" || input_text === null)) { clip_url = input_text; sendCommand(i, LOAD); } diff --git a/examples/acScripts/ControlledAC.js b/examples/acScripts/ControlledAC.js index de31f66df7..41a8a2b257 100644 --- a/examples/acScripts/ControlledAC.js +++ b/examples/acScripts/ControlledAC.js @@ -66,12 +66,10 @@ function getAction(controlEntity) { var uD_action = userData.actionKey.uD_action; var uD_url = userData.clipKey.uD_url; - print("Sono " + id + " e ho ricevuto un comando da " + uD_id); - Entities.deleteEntity((Entities.getEntityProperties(controlEntity)).id); - if(uD_id === id || uD_id === -1) { - if(uD_action === 6) + if (uD_id === id || uD_id === -1) { + if (uD_action === 6) clip_url = uD_url; return uD_action;