i'm making a quiz in flash that loads random images with questions (50 in total)
and i want to check if someone answers right (obvious).....

i'm using this script to check if you answer correctly:
PHP Code:
if (answers[randomnumber].selected)
    {
        
score++;
        } 
the answers is an Array with the correct answers.
the randomnumber is this:
PHP Code:
var high:int 50;
var 
low:int 1;

var 
randomnumber:int = (Math.floor(Math.random()*(1+high-low))+low
the .selected is because it uses radio buttons.
but it doesn't work!

for testing i modded it so that you get the same question every time and i answered the same every time (correctly) but it says that i don't have everything right?!

can someone help me with this problem?? thank is advance