I have very sirous problem with my API.
When I load a swf with pano to container everything work perfect, but when i trie to load next panorama first what i must to do is click on pano wich I loaded previously next press any button on map. And so on...
This is part of code responsible for loading swf in this flash:
Code: Select all
on (release) {
// Create container movieclip
var vr:MovieClip = _root.createEmptyMovieClip("vr", 2);
// prevent access to "real" root
vr._lockroot=true;
// Create a Movieclip loader
var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadStart = function() {
// Set the dimentions and position of the pano
vr.window_width=600;
vr.window_height=300;
vr.window_x=200;
vr.window_y=6;
// change initial viewing parameters
vr.pan=300;
vr.tilt=10;
vr.autorotate = 1;
vr.autorotate_delay = 20;
};
// add the Listener
myLoader.addListener(myListener);
// ... and finally load the pano!
myLoader.loadClip("teren/1.swf", vr);
}
Here is my presentation http://budstol-holding.pl/panel_pop3.swf
Ps.If you have any questions about other parts of code please ask.
Ps2.Sory for my english,