Hello everyone, javascript inside krpano.call action can not be written less than a call to action function, it is that so?
Attach source, I hope you can answer, thank you very much!
function show_addkrpano(){
krpano.call(
"addhotspot(hotspot_line);"+
"set(hotspot[hotspot_line].url,'./comm_line.png');"+
"set(hotspot[hotspot_line].ath,get(view.hlookat));"+
"set(hotspot[hotspot_line].atv,get(view.vlookat));"+
"set(hotspot[hotspot_line].zoom,false);"+
"set(hotspot[hotspot_line].ondown,draghotspot());"+
"<action name='draghotspot'> spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');sub(drag_adjustx, mouse.stagex, hotspotcenterx);sub(drag_adjusty, mouse.stagey, hotspotcentery);if(%1 != null,asyncloop(plugin[%1].pressed,sub(dx, mouse.stagex, drag_adjustx);sub(dy, mouse.stagey, drag_adjusty);screentosphere(dx, dy, ath, atv););,asyncloop(pressed,sub(dx, mouse.stagex, drag_adjustx);sub(dy, mouse.stagey, drag_adjusty);screentosphere(dx, dy, ath, atv);););</action>")
}