Tried to rework the official example of flyout video to start up with a click on a hotspot but quickly got nowhere.
It doesn't even flyout.
Any suggestions?
Code
<hotspot name="caller" ...
onclick="if(get(hotspot[video].flying) == 0.0, flyout-video(video);hotspot[video].togglepause() );
if(get(hotspot[video].flying) == 1.0, flyback-video(video);hotspot[video].togglepause() )"
/ >
<action name="flyout-video">
copy(hotspot[%1].backup_rx,hotspot[%1].rx);
copy(hotspot[%1].backup_ry,hotspot[%1].ry);
copy(hotspot[%1].backup_rz,hotspot[%1].rz);
copy(hotspot[%1].backup_scale,hotspot[%1].scale);
tween(hotspot[%1].rx, 0);
tween(hotspot[%1].ry, 0);
tween(hotspot[%1].rz, 0);
tween(hotspot[%1].scale, 1.5);
tween(hotspot[%1].flying, 1.0);
</action>
Display More