i need some help setting the pan of a panorama to the next that is loaded.
What im doin so far:
I have multiple panos which are organized by a swf file. After one pano is loaded it is possible to load another one whis the same pan/tilt/fov. Everything works so far, but i have to delay the setPan etc. commands. If i call them instant in the "finished_loading" function, as suggested in the flash API, the pano isn't fully loaded/initialized and i get the TypeError: Error #1009
To fix that i have delay the set commands by 1 second. But this isn't a nice workaround.
So what i'm doin wrong?
This is my code without the delay:
*Edit
I copy pasted the flash AS3 PanoVR2.2 Code to flash and just added this line in the "finished_loading" function. (http://gardengnomesoftware.com/wiki/Pan ... script_3.0)
Code: Select all
function finished_loading (e:Event) {
vr.pano.setPan(200);
}