How did you make take butterfly to fly in the panorama?
It´s not that difficult:
1) you first have to build (or use a ready-to-use) an animated swf. In my case i did animate the butterfly (flash of course) with moving wings and saved it to a swf.
2) define a hotspot in krpano script with this swf-url and set its starting ath & atv values to the left screenborder
3) define sutable v_diff value for the vertical amplitude of its up/down movement (1 used a value of 6) and store it as a hotspot attribute.
4) the horizontal movement is a simple tween action: tween(ath, hor_dest, 80, linear). "hor_dest" is added before from the current ath plus an offset (set the offset to 1080 and it will turn around 3 times, then stops).
5) the vertical movement is a recursive loop action: if you call "but_vTween(6)" and define
<action name="but_vTween">
add(tmp, get(hotspot[butterfly].atv), %1);
tween(hotspot[butterfly].atv, get(tmp), 1, easeOutQuad, mul(v_diff, get(v_diff), -1); but_vTween(v_diff));
</action>
it will move up and down additional to its hor movement – as you have seen it in the pano - because the done-action of this tween inverts the v_diff value first and then calls itself with this inverted v_diff as parameter...
i hope it helped!