FLASH—_level0.whereToGo
- Started
- Last post
- 10 Responses
- steadyvibe
Has anyone ever used that to go to a specific frame in an external swf. I am using it and for some reason it wont go to my first frame label. Just all the other ones? Does anyone know why?
- function820
i've never heard of a whereToGo command, is this a prototype function you added? show some code of what you're trying to achieve
- 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();
};
}
- function820
it seems backwards...
what you should do is make the button create the empty movie clip, and load in the movie, then whatever the new empty clip is called (clipOne) you use that to call on frames from the loaded clip
ie.
clipOne.gotoAndStop(1)
rather than _level0i was confused because your whereToGo thing was a variable
- steadyvibe0
I have a few movies loading onto the same level so that they replace eachother each time. Basically for the different sections of the site. I dont get why it is skipping the first frame?
- function820
do you have a stop() on your first frame?
- level20
Did you copy this code online? I've never heard of WhereToGo either, I think that is a place holder - try putting the label (in quotes)or frame number there.
- steadyvibe0
i dont have a stop action because i have a fade of about 6 frames that i have done ont he timeline. I have a stop action on the 6th frame.
- steadyvibe0
The label is in quotes?
- function820
yeah, label is the thing in quotes
how do you know its skipping the first frame if you have 6 frames of fading?
- steadyvibe0
it isnt skipping thew first frame. its skipping the whole first section, my first frame label