# Creating test's in flash

**URL:** https://forum.kirupa.com/t/creating-tests-in-flash/189854
**Category:** flash
**Created:** [June 6, 2006, 6:39pm UTC](https://forum.kirupa.com/t/creating-tests-in-flash/189854 "2006-06-06T18:39:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)
#### Post date: [June 6, 2006, 6:39pm UTC](https://forum.kirupa.com/t/creating-tests-in-flash/189854/1 "2006-06-06T18:39:31Z")

</div>

i there kirupas 🙂

i’m trying to create a kind of test with multiple aswers like this:  
i’m portuguese…true/false;  
i have 21ears old…true/false;  
etc…

and a result btn that shows the points.  
something like 3points for every right question

can anyone help me out?

thanks n advance!

---

<div class="post-metadata">

### Author: ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)
#### Post date: [June 6, 2006, 9:10pm UTC](https://forum.kirupa.com/t/creating-tests-in-flash/189854/2 "2006-06-06T21:10:08Z")

</div>

something like this will get you started

```auto

var points = 0;
function checkTest() {
	if (location == "portuguese") {
		points = points+3;
		return true;
	} else {
		points = points;
		return false;
	}
	if (age == "21") {
		points = points+3;
		return true;
	} else {
		points = points;
		return false;
	}
}
someButton.onPress = function() {
	checkTest();
};

```
