PDA

View Full Version : Enabling/Disabling Hotspot for current panorama


shwami
02-16-2009, 07:40 PM
Hi All,

I am implementing a menu with thumbnails of all related panoramas in my virtual tour. I want the hotspots to function such that:
1. when i click on any thumb, it loads the linked panaroma.
2. thumb gets disabled till a new panorama is loaded.

I show and hide the thumbnails using two hotspots for show and hide.

will really appreciate any help.

here is my code:

<spot id="show_top" static="1" salign="RT" staticX="-85" staticY="15" url="image/show_top.png"
onClick="show_top.visible=0;close_top.visible=1; toggleThumbs()"
/>

<spot id="close_top" visible="0" static="1" salign="RT" staticX="-85" staticY="15" url="image/close_top.png"
onClick="close_top.visible=0;show_top.visible=1; toggleThumbs()"
/>

<spot id="thumb_1" visible="0" static="1" salign="RT" staticX="-65" staticY="70" url="image/reception_bt.png" blockMouse="1"
onClick="loadPano(image/reception.swf)"
/>

<spot id="thumb_2" visible="0" static="1" salign="RT" staticX="-65" staticY="130" url="image/breakout_bt.png" blockMouse="1"
onClick="loadPano(image/breakout.swf)"
/>



cheers!
Siddharth

Rtjure
02-25-2009, 11:54 AM
to show/hide just set the action like that.

But what is this toggle function? I want to toggle my hotspots and every interaction while loading too...

Rtjure
02-25-2009, 04:25 PM
I looked into the forums around and I think it should be possible to tell the pano to make the hotspots invisible while loading/transition

I tried to put onTransitionEnd="external.hotspots.visible=0" into the globals section of my xml just to test if the hotspots disapear.

Sadly it doesn't, but i am sure this is somehow possible to tell FPP when to show the hotspots.

I'll go along searching and testing, if anyone has an Idea/hint please post... (timing or hotspot-plugin are my further ideas. AS in a plugin is less much what i search but if it has to be...)

allSaints
02-25-2009, 04:43 PM
Hi,

have you tried something like:


<global
toggleThumbs="thumb_1.visible+=1;thumb_2.visible+=1"
>


This function will toggle the visibility of thumb_1 and thumb_2 every time it is called. Then of course you will have to add the loadPano() commands...

Regards,
Tommy

Rtjure
02-26-2009, 06:59 PM
I understand, this should work.

Could it be called with
<global
onTransitionEnd="toggleThumbs()" ... ?

I will skip this for now... too many Hotspots with states that cannot be predefined... :rolleyes: