FLASH—_level0.whereToGo
FLASH—_level0.whereToGo
Out of context: Reply #2
- Started
- Last post
- 10 Responses
- steadyvibe0
This is the code i have on my button:
_root.navstub_mc.menu_mc.D.misc... = function() {
loadMovieNum("main_bside.swf", 20);
_level0.whereToGo = "misc";
_level0.gotoAndPlay("misc");
};And this is the code i have on the frist frame of al my movies i am loading:
this._visible = 0;
this.createEmptyMovieClip("loade... 34567);
loader.onEnterFrame = function() {
var loaded = this._parent.getBytesLoaded();
var total = this._parent.getBytesTotal();
if (loaded == total && total > 300) {
this._parent._visible = true;
gotoAndPlay(_level0.whereToGo);
this.removeMovieClip();
};
}