phberlin
02-24-2008, 08:59 PM
Hi everyone,
I have made a testpano (so with bad quality and lots of ghosts and so on) to check if I can make a door (here: of a telephone box) open and close on mouseover within the pano. See here: http://philippkoch.com/panorama/tuer/ (pan left to see the telephone box; when the telephone is being hovered, the door "opens" and "closes" afterwards. Additionally, when being clicked, the pano zooms onto the telephone box, clicking again zooms out.)
The strange thing is: When being first loaded (empty browser cache), the hotspot image is shown and when you hover it with the mouse, you can see the "hand cursor" -- but the "onOver" and "onOut" event don't fire. After reloading the pano (so you load it again although it is already in the browser cache), it works. Why is this? (When testing offline, it works right away with first loading.)
Do I have to make sure the hotspots are loaded first, before the pano shows, or something? If so, how can I solve this?
My XML is:
<?xml version="1.0" ?>
<panorama>
<parameters>
loaderText = %3Ctextformat%3E%3Cfont%20face%3D%27Arial%27%20siz e%3D%2715%27%20color%3D%27%23%240%27%3E%0DDas%20Pa norama%20wird%20geladen%3A%20%09%247%0D%3C%2Ffont% 3E%3C%2Ftextformat%3E
layer_1=hotspots.swf
panoName = test_falkplatzl
panoSuffixes=_0.jpg|_1.jpg|_2.jpg|_3.jpg|_4.jpg|_5 .jpg
qualityMotion=low
qualityStatic=best
behaviour=2
sensitivity=100
threshold=0.0000001
friction=0.85
</parameters>
<hotspots>
<global>
<!-- Telefonzelle -->
<box id="telezelle_zu" url="tuer_zu.png" pan="-86.00" tilt="-3.00" alignX="-0.41" alignY="-0.52" depth="1" scaleX="0.69" scaleY="0.74" smoothing="1" onClick="druff()" onOver="auf()"
auf="
telezelle_zu.alpha=0,100
telezelle_auf.alpha=1,50
onOut=zu()
"
zu="
telezelle_zu.alpha=1,50
telezelle_auf.alpha=0,100
"
druff="
pano.pan_v=0
pano.tilt_v=0
pano.zoom=2.65,200
pano.pan=-85,200
pano.tilt=-3,200
onClick=wech()
"
wech="
pano.pan_v=0
pano.tilt_v=0
pano.zoom=1,200
onClick=druff()
"
/>
<box id="telezelle_auf" url="tuer_auf.png" pan="-86.00" tilt="-3.00" alignX="-0.41" alignY="-0.52" depth="1" scaleX="0.69" scaleY="0.74" depth="1" smoothing="1" alpha="0" />
<!-- // Telefonzelle -->
</global>
</hotspots>
</panorama>
I'd be so happy if someone could point me towards what might be the problem here... It's not too satisfying having to load the pano twice to make it work..
Thanks in advance for any hints & suggestions..
Phberlin
I have made a testpano (so with bad quality and lots of ghosts and so on) to check if I can make a door (here: of a telephone box) open and close on mouseover within the pano. See here: http://philippkoch.com/panorama/tuer/ (pan left to see the telephone box; when the telephone is being hovered, the door "opens" and "closes" afterwards. Additionally, when being clicked, the pano zooms onto the telephone box, clicking again zooms out.)
The strange thing is: When being first loaded (empty browser cache), the hotspot image is shown and when you hover it with the mouse, you can see the "hand cursor" -- but the "onOver" and "onOut" event don't fire. After reloading the pano (so you load it again although it is already in the browser cache), it works. Why is this? (When testing offline, it works right away with first loading.)
Do I have to make sure the hotspots are loaded first, before the pano shows, or something? If so, how can I solve this?
My XML is:
<?xml version="1.0" ?>
<panorama>
<parameters>
loaderText = %3Ctextformat%3E%3Cfont%20face%3D%27Arial%27%20siz e%3D%2715%27%20color%3D%27%23%240%27%3E%0DDas%20Pa norama%20wird%20geladen%3A%20%09%247%0D%3C%2Ffont% 3E%3C%2Ftextformat%3E
layer_1=hotspots.swf
panoName = test_falkplatzl
panoSuffixes=_0.jpg|_1.jpg|_2.jpg|_3.jpg|_4.jpg|_5 .jpg
qualityMotion=low
qualityStatic=best
behaviour=2
sensitivity=100
threshold=0.0000001
friction=0.85
</parameters>
<hotspots>
<global>
<!-- Telefonzelle -->
<box id="telezelle_zu" url="tuer_zu.png" pan="-86.00" tilt="-3.00" alignX="-0.41" alignY="-0.52" depth="1" scaleX="0.69" scaleY="0.74" smoothing="1" onClick="druff()" onOver="auf()"
auf="
telezelle_zu.alpha=0,100
telezelle_auf.alpha=1,50
onOut=zu()
"
zu="
telezelle_zu.alpha=1,50
telezelle_auf.alpha=0,100
"
druff="
pano.pan_v=0
pano.tilt_v=0
pano.zoom=2.65,200
pano.pan=-85,200
pano.tilt=-3,200
onClick=wech()
"
wech="
pano.pan_v=0
pano.tilt_v=0
pano.zoom=1,200
onClick=druff()
"
/>
<box id="telezelle_auf" url="tuer_auf.png" pan="-86.00" tilt="-3.00" alignX="-0.41" alignY="-0.52" depth="1" scaleX="0.69" scaleY="0.74" depth="1" smoothing="1" alpha="0" />
<!-- // Telefonzelle -->
</global>
</hotspots>
</panorama>
I'd be so happy if someone could point me towards what might be the problem here... It's not too satisfying having to load the pano twice to make it work..
Thanks in advance for any hints & suggestions..
Phberlin