Using the tool tips example I was able to get tool tips to work with both flash and html5.
I am not trying to get the tool tips to work with an animated hotspot.
I used example krpano code for the animated hotspot:
<style name="hotspot_ani_white"
url="%SWFPATH%/hotspots/hotspot_ani_white_64x64x20.png"
crop="0|0|64|64"
framewidth="64" frameheight="64" frame="0" lastframe="19"
onloaded="hotspot_animate();"
/>
<!-- hotspot animation action -->
<action name="hotspot_animate">
inc(frame,1,get(lastframe),0);
mul(ypos,frame,frameheight);
txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
delayedcall(0.03, if(loaded, hotspot_animate() ) );
</action>
Because both the animation for the hotspot and the tooltip are defined as "styles" I can't seem to get both of them to work together.
Here is the tooltip snippit from the krpano examples that I am using:
<!-- the 'tooltip' style - show tooltip textfield and update positions as long as hovering -->
<style name="tooltip"
onover="copy(layer[tooltip].html, tooltip);
set(layer[tooltip].visible, true);
tween(layer[tooltip].alpha, 1.0, 0.5);
asyncloop(hovering, copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
onout="tween(layer[tooltip].alpha, 0.0, 0.25, default, set(layer[tooltip].visible,false), copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
/>
<!-- the 'tooltip' textfield -->
<layer name="tooltip" keep="true"
url="%SWFPATH%/plugins/textfield.swf"
parent="STAGE"
visible="false" alpha="0"
enabled="false"
align="lefttop"
edge="bottom"
oy="-2"
width="200"
autoheight="true"
background="false" backgroundcolor="0xFFFFFF" backgroundalpha="1.0"
border="false" bordercolor="0x000000" borderalpha="1.0"
borderwidth="1.0" roundedge="0"
shadow="0.0" shadowrange="4.0" shadowangle="45" shadowcolor="0x000000" shadowalpha="1.0"
textshadow="1" textshadowrange="6.0" textshadowangle="90" textshadowcolor="0x000000" textshadowalpha="1.0"
css="text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:14px;"
html=""
/>
I tried something like this but the tooltip stayed on the screen after the onclick was executed.
<hotspot name="spot1" style="hotspot_ani_white|tooltip" ath="271" atv="1" onclick="loadpano(tfn-complab-library.xml, null, MERGE(1));" "tooltip="here is some help"/>
Any help or other options to help get tooltips to work with my animated hotspot would be greatly appreciated.