Page 1 of 1

problem to show my swf in a fla

Posted: Sun Dec 21, 2008 5:29 pm
by jack73
Hello,

When I place this code on my page, it doesn't work. When I edit my page to see the result, the page is white, nothing appears...

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("mypanorama.swf", vr);


Of course I named my swf correctly.
I don't understand where it comes from... I use the MX version.

Many thanks to who can help me,

Jack

Re: problem to show my swf in a fla

Posted: Mon Jan 05, 2009 1:28 am
by thomas
You need at least Flash 8 to make this work.

Re: problem to show my swf in a fla

Posted: Tue Jan 06, 2009 8:51 pm
by jack73
OK Thomas, thank you. I understand now...

Jack