Entiendo que la funcion if va por aqui:
<plugin name="as1"
hotspot1="0"
hotspot2="0"
/>
<action name="abrir" >
if(plugin[as1].hotspot1== 1, <-- cuando Hotspot 1 y 2 es = a 1 que este es = a (mirarhotspot) -->
if(plugin[as1].hotspot2== 1,
loadpano(pano1.xml); ));
</action>
<action name="mirarhotspot" >
if(plugin[as1].hotspot1 == 1,
set(hotspot[hotspot1].visible, false); <-- cuando Hotspot 1 = a visible,false = a (1) -->
);
if(plugin[as1].hotspot2 == 1,
set(hotspot[hotspot2].visible, false);
);
</action>