You are not logged in.

1

Tuesday, May 19th 2015, 12:28am

Go to an hotspot position from the combox

Hello,

I need to open a scene from the combox that point to a specific hotspot.
This is what I'm doing but it's not working.

The combox

<!-- combobox plugin -->
<plugin name="box" keep="true"
url="%SWFPATH%/plugins/combobox.swf"
alturl="%SWFPATH%/plugins/combobox.js" native="false"
align="toprightbottom" x="10" y="10"
widhth="20"
rowcount="20"
onloaded="action(setupitems);"
/>


The action


<action name="setupitems">
removeall();
additem(myhotspotname, action(art1) );
</action>


<action name="art1">
<!-- select combobox item -->
plugin[combobox].selectitem(myhotspotname);

<!-- dynamically add a hotspot -->
addhotspot(myhotspotname);
set(hotspot[myhotspotname].onclick, looktohotspot(myhotspotname); action(art1); );

<!-- load scene image -->
loadscene(scene_01)null,looktohotspot(myhotspotname),KEEPALL,BLEND(1));


<!-- set view -->
lookat(0,0,0);


</action>


Polygonal hotspot


<!-- polygonal hotspots for the pictures on the wall
(for a HTML5 a zoomicon is used as alternative) -->
<style name="pichotspot1"
capture="false"
zorder="1"
onclick="showpic();"
alturl="hotspots/zoomicon.png"
onhover="showtext( );"
zoom="true"
scale="0.5"
/>

<hotspot name="myhotspotname" style="pichotspot1" pic="mypic">
<point ath="60.87087" atv="4.169227" />
<point ath="60.83824" atv="-0.236102" />
<point ath="66.609892" atv="-0.316512" />
<point ath="66.711845" atv="5.318165" />
<point ath="64.249965" atv="5.725627" />
<point ath="60.933266" atv="5.53932" />
</hotspot>

Thank you very much for help.

Andrea

2

Thursday, May 21st 2015, 12:52pm

Or It will be fine too if I can change the direction of a scene opened from the combox.
Anybody can help me, please?
Thanks

3

Tuesday, May 26th 2015, 9:30pm

Hi,

your code is already there - see here:

Source code

1
2
3
<!-- set view -->

lookat(0,0,0);


Just use other values.

Best regards,
Klaus