Home     |     Photoshop    |     Flash General    |     Flash Actionscript    |     Dreamweaver    |     Macromedia Fireworks


Cervo Technologies
The Right Source to Outsource

Macromedia Flash General

simple questionaire


I have to create a simple quiz. with basic yes and no buttons for each
question. I want the yes buttons to create a 1 and the no buttons a 0, then add
them at the end so I get a total ie " you got 16 out of 20". whats the
scripting on the button to pass that number to the variable... or can anyone
point me to any tutorials.
you'll need to declare the score variable first, something like

var totalScore:Number = 0

then have the script on the button something like

totalScore = totalScore+1

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc