Sie sind nicht angemeldet.

1

Sonntag, 12. Mai 2013, 02:36

Tooltips tips needed for 1.16.3

I had tooltips working in 1.8.15

SO I am trying this project with 1.16.3 and tooltips not working.

I have looked at all the relevant 1.16.3 demos etc and searched thru the forum ANYWAY:

Here is the OLD code

<textstyle name="STYLE3"

font="Arial"

fontsize="20"

italic="false"

background="true"

backgroundcolor="0x0b469e"

textcolor="0xFFFFFF"

border="false"

effect="dropshadow(4,45,0x000000,8,1);"



textalign="center"

xoffset="0"

yoffset="80"



devices="flash"

/>


Then I added this in the hotspot:



onhover="showtext( Zeiss Contura G2 VAST XT ,STYLE3);"


This worked great…..


This did not work at all in 1.16.3 SO


here is the code I tried:



<!-- 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="true"

alpha="1"

enabled="true"

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=""

/>



And here is what I added in the Hotspot:


style="tooltip"

tooltip="Zeiss Contura G2 VAST XT"


I am just following the example Klaus did- what am I missing??









2

Dienstag, 14. Mai 2013, 11:58

Hi,

please see here for Flash vs. HTML5:
krpano 1.16

Btw - please don't create 3 threads for the same topic!

Best regards,
Klaus

Ähnliche Themen