When my mc fades out, I want it to go to the next scene:
onClipEvent (enterFrame) {
this._alpha -= 10;
if (this._alpha<=0) {
nextScene();
}
}
But it doesn’t. It just sits there. I have no clue what I’m doing wrong.
When my mc fades out, I want it to go to the next scene:
onClipEvent (enterFrame) {
this._alpha -= 10;
if (this._alpha<=0) {
nextScene();
}
}
But it doesn’t. It just sits there. I have no clue what I’m doing wrong.
scenes are the DEVIL!
but since you are using them, seems like you have to find away around using them. The thing is, scene navigation doesnt work unless called from the main timeline, and since that script is a movieclip script, its being called from that movieclip. So what you need to do is call nextScene() from the main timeline. How to do that? by making it a function
so in the first frame of the main timeline, make a new function. We’ll call this gotoNextScene.
gotoNextScene = function() {
nextScene();
}
then change your movieclip script to
onClipEvent (enterFrame) {
this._alpha -= 10;
if (this._alpha<=0) {
_root.gotoNextScene();
}
}
and you should be golden
That did it, thanks.