rdhoore
11-27-2008, 09:29 PM
Hi,
I'm learning to make xml's to control FPP, and I'm running into many troubles. Here is one of them, a mild one:
In the <hotspots> section in the pano's xml, I have:
<global onStart="pano.tilt=hs1.tilt,4999; pano.pan=hs1.pan,6999; pano.zoom=3.5,6999; timer+=1,7300,,hs1.onClick">
The object hs1 is a hotspot <spot id="hs1" pan="-59.00" tilt="-3.00" ...>. My problem is: the pano only zooms, the pan and tilt don't change. However, hs1.onClick does get executed fine, so there is no problem with hs1.
I tried assigning these actions to a hotspot onClick event instead of doing them in global onStart, and the result was the same, so it's not that hs1.tilt and hs1.pan are not available yet at the time of execution of global onStart.
Does anyone know why it's not working? :confused: I know I could assign the values themselves, but if I don't understand this already, then how much hope is there I will be able to figure out my other, much more serious problems.
Here is the pano (http://www.virtualtour.be/era/renomar/offices/pano.swf) and the xml (http://www.virtualtour.be/era/renomar/offices/pano.xml).
Thanks.
Ronny
I'm learning to make xml's to control FPP, and I'm running into many troubles. Here is one of them, a mild one:
In the <hotspots> section in the pano's xml, I have:
<global onStart="pano.tilt=hs1.tilt,4999; pano.pan=hs1.pan,6999; pano.zoom=3.5,6999; timer+=1,7300,,hs1.onClick">
The object hs1 is a hotspot <spot id="hs1" pan="-59.00" tilt="-3.00" ...>. My problem is: the pano only zooms, the pan and tilt don't change. However, hs1.onClick does get executed fine, so there is no problem with hs1.
I tried assigning these actions to a hotspot onClick event instead of doing them in global onStart, and the result was the same, so it's not that hs1.tilt and hs1.pan are not available yet at the time of execution of global onStart.
Does anyone know why it's not working? :confused: I know I could assign the values themselves, but if I don't understand this already, then how much hope is there I will be able to figure out my other, much more serious problems.
Here is the pano (http://www.virtualtour.be/era/renomar/offices/pano.swf) and the xml (http://www.virtualtour.be/era/renomar/offices/pano.xml).
Thanks.
Ronny