PDA

View Full Version : Panning & tilting


izoneguy
05-02-2008, 11:11 PM
After a pano loads what is the code to have it
pan and tilt to a different position?

onClick="loadPano(panoName=pano/addison/boardroom&pan=119&tilt=-90&zoom=0.8)"/>

So it loads looking down and after the transition I want it to
go to

pan=152 tilt=-8

Thanks

izoneguy
05-03-2008, 02:34 AM
So I looked at Patricks pan and tilt idea but
I don't get it??

I want my pano to load after a button is clicked and then
to tilt and pan to another position.
This is the command for the pano to load.....

onClick="loadPano(panoName=pano/addison/boardroom&pan=119&tilt=-90&zoom=0.8)"

Then I need it to pan=152&tilt=-8

I have seen this done but I am too dense to figure it out????



<?xml version='1.0' encoding="utf-8"?>
<panorama>
<parameters>
layer_20 = files/hotspots.swf
tiltHome = -90
zoomHome = 2
</parameters>
<hotspots>
<global onStart="global.cl_pano_move"
cl_pano_move="pano.pan=143,1900;pano.zoom=1,100;pano.tilt=0,800, ,global.pano_move2"
cl_pano_move2="pano.pan=80,1000;pano.tilt=-15,500;"
cl_pano_move3="pano.pan=10,1500;pano.tilt=5,500,,global.pano_move ;"
>
<pano></pano>
<spot id="hotspot_1" static="1" salign="rb" staticX="-113" staticY="-65" url="files/My/Image.png"
onClick="global.cl_pano_move"
/>
<spot id="hotspot_2" static="1" salign="rb" staticX="-150" staticY="-65" url="files/My/Image2.png"
/>
<spot id="hotspot_3" static="1" salign="rb" staticX="-190" staticY="-65" url="files/My/Image3.png"
onClick="global.cl_pano_move3"
/>
<spot id="hotspot_4" static="1" salign="rb" staticX="-230" staticY="-65" url="files/My/Image4.png"
onClick="fullscreen(-)"
/>
</global>
</hotspots>
</panorama>

cheathamlane
05-03-2008, 03:34 PM
:)

Maybe use onTransitionEnd? This will be called after the new panorama loads.

onTransitionEnd="global.cl_pano_move"