screentosphere(mouse.x, mouse.y, toh, tov);
jscall(calc('console.log("'+toh+'")'));
jscall(calc('console.log("'+tov+'")'));
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
jscall('window.sceneload()');
jscall('window.toggleRedBox()');
set(hotspot[redBox].visible, 'true');
hotspot[redBox].playvideo(%1, '', false);
hotspot[redBox].stop();
set(hotspot[redBox].visible, get(false));
mul(stagescale,0.5);
set(hotspot[video].rotate, %1);
def(scale, string, get(hotspot[video].scale));
set(hotspot[video].visible, 'true');
set(hotspot[image_hotspot].visible, 'true');
hotspot[video].playvideo(%1, '', false);
set(hotspot[video].scale, get(scale));
hotspot[video].stop();
set(hotspot[video].visible, get(false));
set(hotspot[image_hotspot].visible, get(false));
def(scale, string, get(hotspot[petVideo].scale));
set(hotspot[petVideo].visible, 'true');
hotspot[petVideo].playvideo(%1, '', false);
set(hotspot[petVideo].scale, get(scale));
hotspot[petVideo].stop();
set(hotspot[petVideo].visible, get(false));
set(hotspot[video].scale, %1);
set(hotspot[petVideo].scale, %1);
set(hotspot[video].muted, %1);
set(hotspot[petVideo].muted, %1);
mutesound(bgsnd,%1);
jscall('window.videoready()');
jscall('window.onvideoplay()');
playsound(bgsnd, %1, true);
mutesound(bgsnd,%2);
destroysound(bgsnd);