PDA

View Full Version : Combobox problem


jaaaab
07-17-2007, 09:45 AM
Hi,

I'm experiencing a problem while including a combobox component into a panorama.

When you click on the flash combobox while pano is released and still turning (using behaviour at 2), the list of the combobox is dissociate from the top of the combobox.

check that here: (combo on the floor)
http://www.immersive.fr/panos/?pan=metro&type=flash2.1

Now i tried to fix this by changing behaviour to 1 when mouse is over the combobox. It works fine but when i try to get behaviour back to 2 when mouse is out, it seems that the old behaviour is kept in memory, cause it plays it as it was set in paused.

Try it here: (go on the combobox when panorama is still turning)
http://www.immersive.fr/panos/?pan=metro&type=flash2.1&sc=panorama2

Hope someone can help :)

suastegui
07-17-2007, 09:58 AM
Hi Jaaaab,

both versions (behavior1 AND 2) have the same effect. The top moves away from the list. I have no solution, but just wanted to let you know. I don't think it's a matter of memory. When I click the box, the pano stops for a moment and then moves on with the top of the combo.

Mac Safari/ Firefox

jaaaab
07-17-2007, 10:14 AM
yes but i've tried with every value of behaviour param, even tried to play with treshhold, friction etc... it's always the same: when you come back to original values, panoramas does the slow motion when you get out of the combobox...

tx anyway

i forgot, her's the xml:



<?xml version="1.0" ?>

<panorama>


<parameters>

disableLoading = 1

behaviour = 2
sensitivity = 20
friction = 0.9
treshold = 0.0000001
segments = 20

loaderTextColor = #FFFFFF
loaderBackColor = #000000
loaderText =

panHome = 119
tiltHome = -10
zoomHome = 0.6
zoomMin = 0.6

layer_1 = flashplayer2.1/hotspots.swf
layer_2 = flashplayer2.1/borders.swf
layer_3 = flashplayer2.1/glassMeter.swf
layer_4 = flashplayer2.1/editor.swf


</parameters>


<autorotator>

speed = 0.1
interval = 30
pause = 2000
quality = low

</autorotator>


<borders>

tilt_max=40;

</borders>


<hotspots>

<global

onStart = "loadPreview();"
loadPreview = "
loadPano(?panoName=immersive/metro/flash/preview);
onTransitionEnd=loadMain();
"

loadMain = "pano.leash=lock;
loadPano(?panoName=immersive/metro/flash/showroom,400);
onTransitionEnd=;
"

>


<pano leash="free" />


<spot id="combo1" url="immersive/metro/flash/combobox.swf"

pan="52" tilt="-33" scale="2" buttonmode="1" blockmouse="1"

opaqueBackground="#000000"

onOver="
pano.behaviour=1;
"

onOut="
pano.behaviour=2;
"

/>


</global>


</hotspots>


</panorama>

Denis
07-28-2007, 01:03 PM
This is because the bahaviour 1 ignores rotation speed.
Just add: "behaviour=1;pan_v=0;tilt_v=0"
Second way: "pano.friction=0.6" will stop the rotation fast but smooth.
And the best third way: rewrite standard combobox to add redrawing function on panorama rotation event. :)