Page 1 of 1

problem with API. Please help.

Posted: Mon Oct 12, 2009 9:17 am
by filepark
Hi.
I have made flash panorama with Pano2VR 2.3 beta 4 (flash8) and container in Adobe Flash CS4. I have just copied code from http://gardengnomesoftware.com/wiki/Pano2VR_-_Flash_API and add couple strings:

Code: Select all

var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot = true;
var myLoader = new MovieClipLoader();
var myListener = new Object();

myListener.onLoadInit = function() {
	vr.pano.setTilt(180);			
	vr.pano.moveTo(100,100,100,1000);
	trace(vr.pano.getTilt());	
};

myLoader.addListener(myListener);
myLoader.loadClip("zzz.swf",vr); 
The trace returns the changed value of tilt correctly, but the actual tilt does not change. There is no panorama movement too. Please help.
test.zip
Zip archive includes fla (CS4) and swf panorama
(988.19 KiB) Downloaded 191 times