PDA

View Full Version : How to load all hotspots before loading panorama images ?


kuangozz
12-09-2007, 12:18 PM
I don't know why but hotspots always load after all panorama images are finished loading . So how to load hotspots first , then loading panorama images ?

Thank you so much !!

zleifr
12-09-2007, 02:33 PM
In <parameters> tag put disableLoading=1
In <global> tag put
onstart="loadmain"
loadmain="loadPano(?panoName=myPanoName, 300, fade);"

kuangozz
12-09-2007, 06:35 PM
Thank you so much !!

But when I use your solution , there is a problem that

zoomHome = 1.4
zoomMax = 2
ZoomMin = 1

they are not effective anymore ,I don't know how to modify Zoomhome value

Here is my xml :

<panorama>
<parameters>

layer_10 = pano/files/glassMeter.swf
layer_1 = pano/files/hotspots.swf
layer_2 = pano/files/fps.swf
layer_3 = pano/files/limits.swf
layer_4 = pano/files/autorotator.swf
layer_8 = pano/files/menuFullscreen.swf


disableLoading = 1
<!--//
panoType = cube
panoName = pano/images/ec/ec
//-->

loaderStreamed = 1
loaderBandwidth = 0
loaderConsecutive = 0

zoomHome = 1.4
zoomMax = 2
ZoomMin = 1

qualityMotion = low
qualityStatic = best

</parameters>


<hotspots>

<global onStart="external.autorotator.disabled=1"

onEnterFullscreen="
tay_mickey.visible=0;
fullscreen.visible=0;
logo.staticX=5,500;
"

onExitFullscreen="
tay_mickey.visible=1;
fullscreen.visible=1;
logo.staticX=110,500;
"
onStart="loadPreview();" loadPreview=" loadPano(?panoName=pano/images/ec/ecs,300); onTransitionEnd=loadMain(); pano.qualityStatic=low "
loadMain=" loadPano(?panoName=pano/images/ec/ec,600); onTransitionEnd= "

>

<spot id="tay_mickey" static="1" salign="LT" align="LT" staticX="0" staticY="0" url="images/bean_05.png"/>
<spot id="fullscreen" static="1" salign="lb" align="lb" staticX="20" staticY="-20" alpha="0.6" url="images/maximise.png"
onClick="fullscreen()"
onOver="alpha=1,150"
onOut="alpha=0.6,200"
/>


</global>

</hotspots>

<limits>
pan_min = ""
pan_max = ""
tilt_min = -60
tilt_max = 55
</limits>


</panorama>

jaaaab
12-09-2007, 10:53 PM
loadmain="loadPano(?panoName=myPanoName&zoomHome=0.8, 300, fade);"

;)