# Score Reconizing

**URL:** https://forum.kirupa.com/t/score-reconizing/13017
**Category:** flash
**Created:** [February 7, 2003, 4:30pm UTC](https://forum.kirupa.com/t/score-reconizing/13017 "2003-02-07T16:30:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wes321](https://avatars.discourse-cdn.com/v4/letter/w/96bed5/32.png) [@wes321](https://forum.kirupa.com/u/wes321)
#### Post date: [February 7, 2003, 4:30pm UTC](https://forum.kirupa.com/t/score-reconizing/13017/1 "2003-02-07T16:30:33Z")

</div>

Hi i have flash 5 and im making a game for a project where u collect polygons and every time you get one it adds 1 to the score. I tried so many different things but it does work. I want to make it so when the score is 7 it will go to scene 2.  
This is the script that i have

onClipEvent (load) {  
if (\_root.score == 1) {  
\_root.gotoAndStop(2);  
}  
}

that doesnt work can u post one that will work tnkz

wes

if you want to check out my site go ahead

[http://wml321.tripod.com/w/WebsiteNEW.swf](http://wml321.tripod.com/w/WebsiteNEW.swf)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 7, 2003, 4:42pm UTC](https://forum.kirupa.com/t/score-reconizing/13017/2 "2003-02-07T16:42:39Z")

</div>

scene 2 or frame 2?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 7, 2003, 5:40pm UTC](https://forum.kirupa.com/t/score-reconizing/13017/3 "2003-02-07T17:40:26Z")

</div>

Simple, just change this line:  
onClipEvent (load) {

To this line:  
onClipEvent (enterframe) {

This way the script will be executed every time a frame is played, instead of just once upon loading the movieclip.
