PDA

View Full Version : close buttons after click on map.


discocandy
08-05-2008, 06:04 AM
Hi all. somthing weird for me. In my last tour I use a map.
when you click the next panorama it should close automaticly.
so I made a piece of coding like this,


to open buttons.
openButtons="backgr.salignX=0,400,smooth;
new1.salignX=0,400,smooth;
new2.salignX=0,400,smooth;

to close buttons:
closeButtons="backgr.salignX=-2,500,strong;
new1.salignX=-2,500,strong;
new2.salignX=-2,500,strong;
and the spots.
<spot id="backgr" url="graphics/floorplan.png" static="1" salignX="-2"alpha="1" depth="4" blockMouse="1"/>

<spot id="new1" url="graphics\pov.png" static="1" staticX="256" staticY="100" salignX="-1" depth="6" blockMouse="1"
onPress="external.autorotator.disabled=0; loadPano(panoName=images/pano1,1000,stripes); closeButtons()" />

<spot id="new2" url="graphics\pov.png" static="1" staticX="174.00" staticY="127.00" salignX="-1.1" depth="6" blockMouse="1"
onPress="external.autorotator.disabled=0; loadPano(panoName=images/pano2,1000,stripes);closeButtons()"/>


Something is wrong here.. but what??

Another strange thing is that the hotspots do not appear in Firefox?
I am not really a coder and dyslectic so doing this is always difficult:cool:

tour can be found here. (http://www.discocandy.com/panorama/aviodromeflash/index.htm) (work in progress!)
thnx for reading!
Freddy

Virtualguide
08-05-2008, 09:14 AM
Hi,
be carefull of / and \

Regards,
Igor

discocandy
08-05-2008, 05:07 PM
thnx Igor that did the trick for firefox..

now to delete the map after loading..
:D

Virtualguide
08-06-2008, 08:25 PM
Why is here onPress, not onClick?

onPress="external.autorotator.disabled=0; loadPano(panoName=images/pano2,1000,stripes);closeButtons()"/>

discocandy
08-07-2008, 06:54 AM
Why is here onPress, not onClick?

onPress="external.autorotator.disabled=0; loadPano(panoName=images/pano2,1000,stripes);closeButtons()"/>


ehhh. beats me.. it works..:cool:

now the map also works..
onto the pictures and info for each panorama. thnx