In the actionscript I have used the following to define the pan:
Code: Select all
vr.pano.setPan(panselect);
Code: Select all
vr.pano.setPan(panselect);
Code: Select all
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=0;
vr._y=0;
var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadStart = function () {
// Set the dimensions and position of the pano
vr.window_width=500;
vr.window_height=380;
vr.window_x=25;
vr.window_y=10;
};
myListener.onLoadInit = function () {
// your initalisation of the pano, add Hotspots,...
// You can also set the window size here but you need to use the API
vr.pano.setWindowSize(500,380);
vr.pano.setPan(100);
};
myLoader.addListener(myListener);
myLoader.loadClip("1.swf", vr);
Code: Select all
var panselect:Number;
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=0;
vr._y=0;
var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadStart = function () {
// Set the dimensions and position of the pano
vr.window_width=500;
vr.window_height=380;
vr.window_x=25;
vr.window_y=10;
};
myListener.onLoadInit = function () {
// your initalisation of the pano, add Hotspots,...
// You can also set the window size here but you need to use the API
vr.pano.setWindowSize(500,380);
vr.pano.setPan(panselect);
};
myLoader.addListener(myListener);
myLoader.loadClip("1.swf", vr);
when swf 9 compiling - gives error debbuger for AS3.Flash 9 and AS3 using the new API as a base and it works perfectly now.