Hi,
I want to make a call in Flash to change the current panorama. And instead of having the initial vlookat/hlookat pulled from the xml, I want to keep it variable in actionscript. This is what I have:
Code
var fov:Number = 45;
var pan:Number = 90;
var tilt:Number = 10;
krpano.call("loadpano(location_1.xml, view.hlookat=" + pan + "&view.vlookat=" + tilt + "&view.fov=" + fov + ",MERGE,BLEND(1));"); //Make the call, executing the new pano
In the xml I deleted the whole <view></view> part. This means that It should get the view information from the previous panorama unless its overwritten (Because I use merge). And because I overwrite it (2nd parameter of loadpano) It should take the fov,pan,tilt I declare here.
But it doesnt. I even tried setting the 2nd parameter to null, and parse a lookat(pan,tilt,fov) to krpano. No success.
Flash traces the call correctly. How do I force the tilt/pan/fov I want?