Targeting main stage for navigation 'scope'
Hi there,
I'm getting an error when it comes to using this.gotoAndPlay('end'). I have a label with 'end' so that I don't need to use frame numbers ![]()
Essentially, I have a few drag functions. The function 'finish();' fires at the 'mouseup' per drag (so right at the end).
Finish function looks like this:
function finish(){
score++;
console.log(score);
if(score == 3){
this.gotoAndPlay('end');
}
}
The score gets to 3 but then..
I'm getting an error on this.gotoAndPlay('end'). I assume it's because of the 'scope'..
Any help is greatly appreciated!
