PDA

View Full Version : qualityMotion problem


behrda
09-05-2007, 04:23 PM
Hi together,
I want to change the qualityMotion and qualityStatic Parameters while running the application. If I click on a hotspot(spot_01) in my panorama, it function very well. But if I change the panorama, after changing qualityMotion the, my qualityMotion-Change is undo. Whats wrong in there?
Thanx for help if you understand what I mean...;)
my xml-File:
<code>


<?xml version="1.0" encoding="ISO-8859-1"?>
<panorama>
<parameters>
loaderText=
loaderBackColor=#8F9E88
segments=20;
behaviour=0;
</parameters>
<hotspots>
<global
setPanoFullscreenQuality="pano.qualityMotion=low;pano.qualityStatic=low;"
setPanoNormalQuality="pano.qualityMotion=high;pano.qualityStatic=high;"
<spot id="spot_01" url="myPic.jpg" linked="wood" pan="0" tilt="0" onClick="setPanoNormalQuality()"/>
</global>
</hotspots>
</panorama>


</code>

neil
09-05-2007, 11:39 PM
Your code has some breaks in it Behrda. Does it help if you remove the space in 'p ano' in the last command in the following line?

setPanoFullscreenQuality="pano.qualityMotion=low;p ano.qualityStatic=low;"

there is also a space after 'pano' in the next line but it shouldn't stop it from working (and according to your message this function is ok):

pano .qualityStatic=high;

Otherwise your code looks fine. Hope this helps.

Neil

cheathamlane
09-06-2007, 03:58 PM
But if I change the panorama, after changing qualityMotion the, my qualityMotion-Change is undo.

<?xml version="1.0" encoding="ISO-8859-1"?>
<panorama>
<parameters>
loaderText=
loaderBackColor=#8F9E88
segments=20;
behaviour=0;
</parameters>
<hotspots>
<global
setPanoFullscreenQuality="pano.qualityMotion=low;pano.qualityStatic=low;"
setPanoNormalQuality="pano.qualityMotion=high;pano.qualityStatic=high;"
<spot id="spot_01" url="myPic.jpg" linked="wood" pan="0" tilt="0" onClick="setPanoNormalQuality()"/>
</global>
</hotspots>
</panorama>


Hi there:

I think what is happening is: the panorama player is defaulting to the default quality setting.

If you want the change to "stick" between panoramas, then you'll need to do something with a <global onNewPano=""/> (I think).

Something like:

<hotspots>
<global
onNewPano=""
setPanoFullscreenQuality="pano.qualityMotion=low;pano.qualityStatic=low;"
setPanoNormalQuality="pano.qualityMotion=high;pano.qualityStatic=high;"
>
<spot id="spot_01" url="myPic.jpg" linked="wood" pan="0" tilt="0" onClick="setPanoNormalQuality(); onNewPano=setPanoNormalQuality;"/>
<spot id="spot_02" url="myPic2.jpg" linked="wood" pan="50" tilt="50" onClick="setPanoFullscreenQuality(); onNewPano=setPanoFullscreenQuality;"/>
</global>
</hotspots>


That's how I would approach it... HTH