Hey guys,
I've got a problem with an action for some hotspots. I would like to show some text on hover. Therefor I've got the showtext plugin, problem is that I can't get it to show the text I want.
No matter what combination I'm using for the variable, showtext got the right style but doesnt show any text. As soon as I enter text by hand instead of a variable its working correct. When checking the variable via "trace" I get the correct response, so the variable isnt empty.
Maybe someone could have a look at the action (problem is at line 22 onhover):
Code
<action name="choose_style" scope="local">
txtsplit(caller.styles, ',', arr);
set(caller.onclick,remove_style_hotspots(caller.name));
for(set(i,0), i LT arr.count, inc(i),
txtadd(hstitle, '"', get(scene[get(arr[get(i)].value)].title), '"');
txtadd(hsname, 'hs_style_', get(i));
txtadd(hsurl, '', get(scene[get(arr[get(i)].value)].thumburl));
txtadd(hsposition, calc(view.hlookat),',',calc(view.vlookat),',',calc(view.fov));
addhotspot(get(hsname));
hotspot[get(hsname)].loadstyle(skin_hotspot_choose_style);
set(hotspot[get(hsname)].url, get(hsurl));
set(hotspot[get(hsname)].ath, calc(caller.ath));
set(hotspot[get(hsname)].atv, calc(caller.atv));
set(hotspot[get(hsname)].linkedscene, get(arr[get(i)].value));
set(hotspot[get(hsname)].linkedscene_lookat, get(hsposition));
set(hotspot[get(hsname)].onloaded, set_css_id('test'));
set(hotspot[get(hsname)].onhover, showtext(get(hstitle), hotspotTextstyle));
trace(hstitle);
if(xml.scene == arr[get(i)].value,
tween(hotspot[get(hsname)].alpha, 0.5, 1.2);
tween(hotspot[get(hsname)].scale, 0.38, 0.6);
,
tween(hotspot[get(hsname)].alpha, 1, 1.2);
tween(hotspot[get(hsname)].scale, 0.48, 0.6););
tween(hotspot[get(hsname)].rotate, calc((360/arr.count)*(i+1)), 0.6);
tween(hotspot[get(hsname)].rz, calc(-(360/arr.count)*(i+1)), 0.6););
</action>
Display More