You are not logged in.

1

Sunday, December 4th 2011, 9:23pm

Load scene querystring based

My question may be stupid, but....
I have a virtual tour with 10 scene; now the Virtual Tour start with the scene 0, because i use this simple code unload


loadscene(get(scene[0].name), null, MERGE);

My question is: how to start the Virtual Tour with a different scene, loading dynamically the value of the scene?
My idea is use a GET parameter in the html page

For example:
http://www.cxcxxxx.com/panorama.html?scene=1 =====> START with the scene 1
http://www.cxcxxxx.com/panorama.html?scene=3 =====> START with the scene 3


but how to get the value of query string into the xml?

Or my approach is bad? Thank you