0 Replies - 2656 Views - Last Post: 02 April 2013 - 08:46 PM

#1 telly  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 24-March 13

Creating a Score Box for a Quiz (with Option In RadioButtons)

Posted 02 April 2013 - 08:46 PM

Hi fellas, i'm creating a quiz but also a complete beginner to Actionscript 3,pls can anyone help on writing a code or help spot the mistake in this code below.i need it for my project that will be due on 1st of May.When i input this code,it tells me "the else statement is unexpected" What do i do?

// starting out with a score of 0

var myscore = 0; score.text = myscore+"";
var mygroup1:RadioButtonGroup = new RadioButtonGroup("group1");
a1.group = a2.group = a3.group = a4.group = mygroup1;

b1.addEventListener(MouseEvent.CLICK,quizHandler1)
function quizHandler1(event:MouseEvent):void{
if(mygroup1.selection.label=="7"){myscore+==1; nextFrame(); if (group.selection.label== "Blue"){myscore+==1;

else{nextFrame();
}

Is This A Good Question/Topic? 0
  • +

Page 1 of 1