Hi,
i made panorama swf in pano2qtvr and i'd like to load into other swf(flash9, AS2), but the problem is if i use my panorama, it doesn't work, but if i use "park.swf" from the container tutorial, it works...
so i have no idea what's the problem and what's the different between 2 swf files.
cheers
Creev
swf loading problem into other swf
no, i tried all variation.
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=100;
vr._y=200;
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=100;
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);
};
myLoader.addListener(myListener);
myLoader.loadClip("panorama/mypano.swf", vr);
this script is in my container swf.
panorama url from tutorial (http://vv.digitania.hu/teszt/pano/panorama/park.swf):
and this is main (http://vv.digitania.hu/teszt/pano/panorama/mypano.swf):
and these are containers swf (http://vv.digitania.hu/teszt/pano/proba_mypano.html , http://vv.digitania.hu/teszt/pano/proba_park.html)
i changed only the path in AS: myLoader.loadClip("panorama/park.swf", vr);
so, i dont know what is the different between park.swf and mypano.swf.
i made my pano with pano2qtvr 1.6.3 pro
thanks for help
Creev
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=100;
vr._y=200;
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=100;
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);
};
myLoader.addListener(myListener);
myLoader.loadClip("panorama/mypano.swf", vr);
this script is in my container swf.
panorama url from tutorial (http://vv.digitania.hu/teszt/pano/panorama/park.swf):
and this is main (http://vv.digitania.hu/teszt/pano/panorama/mypano.swf):
and these are containers swf (http://vv.digitania.hu/teszt/pano/proba_mypano.html , http://vv.digitania.hu/teszt/pano/proba_park.html)
i changed only the path in AS: myLoader.loadClip("panorama/park.swf", vr);
so, i dont know what is the different between park.swf and mypano.swf.
i made my pano with pano2qtvr 1.6.3 pro
thanks for help
Creev
http://vv.digitania.hu/teszt/pano/panorama/mypano.swf is created with Pano2VR and it is a Flash 9 movie. You can not use a AS2 container to load a AS3 panorama.
MfG, Thomas