# Actionscript question - Help needed with score counting conflict!

**URL:** <https://forum.kirupa.com/t/actionscript-question-help-needed-with-score-counting-conflict/283136>\
**Category:** flash\
**Created:** [March 3, 2009, 12:38am UTC](https://forum.kirupa.com/t/actionscript-question-help-needed-with-score-counting-conflict/283136 "2009-03-03T00:38:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxflash](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@maxflash](https://forum.kirupa.com/u/maxflash)\
**Post date:** [March 3, 2009, 12:38am UTC](https://forum.kirupa.com/t/actionscript-question-help-needed-with-score-counting-conflict/283136/1 "2009-03-03T00:38:57Z")

</div>

I’m creating an interactive where the user selects 6 words out of 28 that are scattered over the screen and depending on which 6 words that they select it will then take them to play 1 out of 16 animations. I have also simplified the 28 words by grouping them into 4 categories (eg: 7 happy, 7 sad, 7 angry and 7 confused words).

I’ve sorted out the basic actionscript based on scoring which counts what the user has selected (eg: 5 happy words clicked = 5, 1 angry words clicked = 1, quite simple, but its one I can understand) and it works fine and takes them to play the animation eg…

onClipEvent (enterFrame) {  
if (\_level0.happycount == 5 && \_level0.angrycount == 1) {  
\_level0.gotoAndStop(“animation1”);  
}  
}

But I’ve run into a small problem…

I’f the user chooses 3 words from one category and 3 words from another category I have an equal answer!

Does anyone know a better way to do this or is there a way to trace what the user has clicked first (eg: the 3 words from category 1 takes priority over 3 words from category 2 as they were clicked first? and will go play the right animation).

Any help or links to tutorials on this topic would be great.  
I’m using actionscript 2.
