Page 1 of 1

Help me "loadercomponent" actionscript

Posted: Thu Dec 11, 2008 2:44 am
by skim
hi everyone im newbie on flash and pano.
Im doing a website "main.fla", where i have a preloader and website content on "Scene 1" and a "loader component" loading my "panorama.swf" on "Scene 2".

When i test the movie everything in the "Scene 1" works fine, when i navigate thru my menu to "Scene 2" my panorama also works fine. But the PROBLEM is when i navigate back from "Scene 2" to "Scene 1" my panorama continues to show up on top of everything when it shouldnt be there.

The code im using for the loadercomponent of "panorama.swf" is:

on (load){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=955;
vr.window_height=400;
vr.window_x=0;
vr.window_y=100;
};
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(955,400);
};
myLoader.addListener(myListener);
myLoader.loadClip("panorama.swf",vr,1);
}

I dont understand much of actionscript, can anyone help me solve this problem.
SORRY FOR MY ENGLISH, Thanks a lot...
regards andrew

Re: Help me "loadercomponent" actionscript

Posted: Thu Dec 11, 2008 1:57 pm
by skim
i solve my problem. i removed the _root from my actionscript and works fine. altought i cant put the panorama in "scene 1" so i didnt need to jump from a scene to another. with the same actionscript just appears the loadercomponent box outline. i think its because i have stop(); actions in the frames before the frame where i wanted to put my panorama.