Code: Select all
stop();
Stage.scaleMode = "noScale";
////////////////////////////
var fullstate = 0;
_root.createEmptyMovieClip('fullwatcher',this.getNextHighestDepth());
fullwatcher.onEnterFrame = function() {
if ((Stage["displayState"] == "fullScreen") && (fullstate == 0)) {
fullstate = 1;
showpan();
}
if ((Stage["displayState"] == "normal") && (fullstate == 1)) {
fullstate = 0;
unloadMovie("_level9");
}
};
function showpan() {//function that loads panorama
var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mcLoader.loadClip("pan.swf",9);
_level9._lockroot = true;
}
To get bug just follow this steps:
1. click on black button in center of movie (fullscreen will be turned on and panorama will be loaded)
2. press 'ESC' to turn off the fullscreen, panorama will be unloaded
3. repeat step '1', you'll see blue box!
It seems to me that panorama doesn't unloads fully when escaping from fullscreen and bugs next time I launch it.
In attached file: .fla file (flash8), and two swf's (project and panorama made with pano2vr, or you can use another flash8 panorama).
Please help with this bug, I can't continue my project because of it.