# Scoring - gotoAndStop

**URL:** <https://forum.kirupa.com/t/scoring-gotoandstop/70928>\
**Category:** Uncategorized\
**Created:** [November 18, 2004, 11:43pm UTC](https://forum.kirupa.com/t/scoring-gotoandstop/70928 "2004-11-18T23:43:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orko3001](https://avatars.discourse-cdn.com/v4/letter/o/9e8a1a/32.png) [@orko3001](https://forum.kirupa.com/u/orko3001)\
**Post date:** [November 18, 2004, 11:43pm UTC](https://forum.kirupa.com/t/scoring-gotoandstop/70928/1 "2004-11-18T23:43:14Z")

</div>

Can someone please just chec over my code :puzzled:

Am not sure why it doesn’t work - I realise it is messy…

Basically I want my game to go to the next frame when I get a certain score. But it won’t ☹

Thankyou in advance for any help 🙂

onClipEvent (enterFrame) {  
this.onPress = function() {  
startDrag(this);  
};  
this.onRelease = onReleaseOutside = function() {  
stopDrag();  
if (this.hitTest(\_root.dropD) == true) {  
this.\_x = 329.2;  
this.\_y = 68;  
\_root.Dtick.\_visible = true;  
\_root.dropD.\_visible = false;  
this.\_visible = false;  
\_root.ansD.\_visible = true;  
if (\_root.total==100) {  
gotoAndStop(2);  
} else {  
this.\_x = 201.5;  
this.\_y = 68;  
}  
};  
}
