# NaN problem... clarifying numbers

**URL:** <https://forum.kirupa.com/t/nan-problem-clarifying-numbers/312312>\
**Category:** flash\
**Created:** [July 30, 2010, 9:43am UTC](https://forum.kirupa.com/t/nan-problem-clarifying-numbers/312312 "2010-07-30T09:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![12sea21](https://avatars.discourse-cdn.com/v4/letter/1/ed8c4c/32.png) [@12sea21](https://forum.kirupa.com/u/12sea21)\
**Post date:** [July 30, 2010, 9:43am UTC](https://forum.kirupa.com/t/nan-problem-clarifying-numbers/312312/1 "2010-07-30T09:43:46Z")

</div>

Quiz type program [SIZE=“1”]cant attach so i give temp link[/SIZE]

code:  
frame 4 code:

```auto

var numSuc:Number; //number of successes is a number
var numTry:Number; // number of tries is a number
var percent:Number; // percent correct is a number
btnCorrect.onRelease = function(){
	numTry++; //add 1 to number of tries
	numSuc++;// add 1 to number of successes
	gotoAndStop("question3"); // go to frame 5
}
btnWrong1.onRelease = function(){
	numTry++;
	gotoAndStop("question3");
}
btnWrong2.onRelease = function(){
	numTry++;
	gotoAndStop("question3");
}
btnWrong3.onRelease = function(){
	numTry++;
	gotoAndStop("question3");
}

```

and what it gives is this:  
 ![](http://www.kirupa.com/forum/attachment.php?attachmentid=52375&stc=1&thumb=1&d=1280482772)  
this is the swf : [[http://megaswf.com/serve/30752/](http://megaswf.com/serve/30752/)]

thanks 🙂  
~12sea21
