2 Panoramas in one .swf

Specific Q&A about the new Flash export
Locked
behrda
Posts: 2
Joined: Mon Mar 05, 2007 2:49 pm

Mon Mar 05, 2007 2:57 pm

Hallo together,
i want to show 2 Panoramas(at the same time) in one .swf! I have tried it for so long, but it will not work. I don´t now where the mistake is or if it is even possible...
Here is my source code:

Code: Select all

var vr_full:MovieClip = _root.createEmptyMovieClip("vr_full", 600);

function loadFullscreen() {
	//vr_full._lockroot = true;
	// Create a Movieclip loader
	var myLoader_full = new MovieClipLoader();
	var myListener_full = new Object();

	//create Listener--------------------------------------------
	myListener_full.onLoadStart = function() {
		// Set the dimentions and position of the pano
		vr_full.window_width = 300;
		vr_full.window_height = 200;
		vr_full.window_x = 300;
		vr_full.window_y = 200;
		// change autorotation  
		vr_full.autorotate = 0;
		vr_full.autorotate_delay = 20;
		//set pan before you can see it
		vr_full.pan = 50
	};
	myListener_full.onLoadProgress = function() {
	};
	myListener_full.onLoadComplete = function() {
	};
	myListener_full.onLoadInit = function() {
	};
	// add the Listener 
	myLoader_full.addListener(myListener_full);

	// ... and finally load the pano!
	myLoader_full.loadClip("panos_swf/12001_3600.swf", vr_full);
}


//-----------------------------------------------------------------------------------------------


var vr:MovieClip = _root.createEmptyMovieClip("vr", 500);

function loadPanorama() {
	//vr._lockroot = true;
	// Create a Movieclip loader
	var myLoader = new MovieClipLoader();
	var myListener = new Object();

	
	//create Listener--------------------------------------------
	myListener.onLoadStart = function() {
		// Set the dimentions and position of the pano
		vr.window_width = 300;
		vr.window_height = 200;
		vr.window_x = 1;
		vr.window_y = 1;
		// change autorotation  
		vr.autorotate = 0;
		vr.autorotate_delay = 20;
		//set pan before you can see it
		vr.pan = 50
	};
	myListener.onLoadProgress = function() {
	};
	myListener.onLoadComplete = function() {
	};
	myListener.onLoadInit = function() {
	};
	// add the Listener 
	myLoader.addListener(myListener);

	// ... and finally load the pano!
	myLoader.loadClip("panos_swf/12002_3600.swf", vr);
}


loadPanorama();
loadFullscreen();
Thank you for your help
Dario
User avatar
thomas
Chief Gnome
Posts: 2563
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Sun Mar 11, 2007 12:31 am

Currently this doesn't work because I use static classes. Maybe I will change this in a future version.
MfG, Thomas
VKNT
Posts: 13
Joined: Sun Jan 28, 2007 1:42 am

Sun Mar 11, 2007 12:29 pm

It would be nice to have this functionality. I can imagine some creative things with that.
Locked