<hotspot name="portraitfresko-west1"
style="hotspot_ani_red|flagtype-bannertext|fresco_hotspot"
alpha="1" ath="-10.62" atv="-10.95" onhover="" onout="" keep="true"
tooltip="Kirchenlehrer:[br]Albertus"
pic="albertusmagnus"
/>
<style name="flagtype-bannertext"
onclick="showflagtype-bannertext();"
/>
<style name="flagtype-bannertextstyle" keep="true"
url="%BASEDIR%/plugins/textfield.swf"
visible="true" alpha="1"
enabled="true"
align="lefttop"
edge="bottom"
padding="4 4 20 4"
autowidth="true"
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:#00FFFF; font-family:Arial; font-weight:bold; font-size:14px;"
/>
<action name="showflagtype-bannertext">
<!-- creates a new layer and shal show text -->
if(layer[get(pic)] === null
,
addlayer(get(pic));
set(layer[get(pic)].style, flagtype-bannertextstyle);
txtadd(plugin[MyTourControlVars].spotname1,'hotspot[',get(name),'].name');
set(layer[get(pic)].parent,get(plugin[MyTourControlVars].spotname1) );
set(layer[get(pic)].visible,true);
set(layer[get(pic)].distorted,true);
set(layer[get(pic)].zorder,2);
set(layer[get(pic)].scale,1.0);
set(layer[get(pic)].alpha,1.0);
txtadd(onloadstring,'copy(layer[',get(pic),'].html, tooltip); showlog(); ' );
set (layer[get(pic)].onloaded, get(onloadstring) );
copy(layer[get(pic)].html, get(tooltip) );
trace('layer is null: ', get(pic) );
trace('picfilename: ', get(picfilename) );
trace('parent spot: ', get(plugin[MyTourControlVars].spotname1) );
trace('onloadstring:', get(onloadstring) );
trace('tooltip: ', get(tooltip) );
trace('style : ', get(layer[get(pic)].style) );
,
txtadd(picfilename,'%CURRENTXML%/images/PopUps/PopUp_',get(pic),'.jpg');
copy(layer[get(pic)].url,picfilename );
copy(layer[get(pic)].html,get(tooltip) );
);
</action>
Hi all,
I dont get this resolved .. need help.
What Do i want to .. waht have i done:
I want to have hotspot with "tooltips" that stay visible and follow the hotspot when moving the pano - just like flags-type-banners.
What have i done:
I made a combination of Klaus' "flying in" hotspots from the wine cellar and Klaus' tooltips example.
Explanation:
the hotspot has the 'pic' value as in Klaus' origin.
i have a style flagtype-bannertext like Klaus "pic-hotspot"
FOR NOW - while expermenting - i use the onclick on this hotspot.
Other than Klaus i now use addlayer (instead addhotspot), because i need to link the textstyle.swf to that layer.
In order to ease the ADDLAYER creation in the ACTION " showflagtype-bannertext" i moved many layer-ekement to a style which i refer to while creating it.
Why ADDLAYER
I want to have 12 spots active in thepano (see ref below given), so i need dynamically created layers
What are the symptoms:
clicking on the hotspot all traces appear as i would expect WHEN THE LAYER IS ADDED:
INFO: layer is null: albertusmagnus
INFO: picfilename: null
INFO: parent spot: portraitfresko-west1
INFO: onloadstring:copy(layer[albertusmagnus].html, tooltip); showlog();
INFO: tooltip: Kirchenlehrer:[br]Albertus
INFO: style : flagtype-bannertextstyle
But no tooltip appears.
Clicking the second time WHEN THE LAYER ALREADY EXISTS, the picture PICFILENAME appears
(see the comma indication FALSE branch for f(layer[get(pic)] === null,)
Ths means to me:
Layer creation fine
no hidden trapp currently (alpha values, visibles, scale etc)
BUT OBVIOUSLY the layerstyle with the textfield.swf is not beeing activated
Any ideas guys???
=====================
The pano where I want to use it is the following:
http://www.pandorama-place.com/panoramen/draf…st/BibTest.html
using the leftmost button, one turns on all hostspots for the fantastic frescos and THEN THEN THE TITLE OF THE FRESCO shall be seen while moving to invite people to look at.
(btw it just for now is webspace. page ic under construction)
AND ... KLAUS ... a wonderful wonderful tool and exciting examples provided by you
THANK YOU