Groups | Blog | Home
all groups > flash actionscript > august 2004 >

flash actionscript : button values



dmcdonald
8/6/2004 11:04:49 PM
I'm trying to create a skill assessment. Where the user has a range to choose
from depending on how they feel about a certain thing: 0, 1, 2, 3 (each mc
with corresponding values) . But I want to make sure they can not click more
than one value per question. I was trying to set this up all in one from but I
suppose I should just set each question up on a different frame. Is there a way
to do this without setting each one up on a different frame? I'm sure I'm doing
this the hard way but here's what I'm doing:

On frame one:

score =0;
ques13.onPress = function() {
_root.score+=3;
ques13.gotoAndStop("clicked");
}
ques12.onPress = function() {
_root.score+=2;
ques12.gotoAndStop("clicked");
}
ques11.onPress = function() {
_root.score+=1;
ques11.gotoAndStop("clicked");
}

ques10.onPress = function() {
_root.score+=0;
ques10.gotoAndStop("clicked");
}

Jack.
8/6/2004 11:24:21 PM
set the onPress functions of the other buttons to null -

ques13.onPress = function(){
_root.score+=3;
ques13.gotoAndStop("clicked");
ques12.onPress = ques11.onPress = ques10.onPress = null;
AddThis Social Bookmark Button