Creating test's in flash

i there kirupas :slight_smile:

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!

something like this will get you started


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();
};