Page 1 of 1

problem with API. Please help.

Posted: Mon Oct 05, 2009 4:53 am
by filepark
Hi.
I have made flash panorama with Pano2QTVR 1.6.6 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.