OK CAN someone tell me whats wrong with this...
function correct(){
score+=1
nextFrame()
correctans._visible=true
}
function wrong(){
nextFrame()
wrongans._visible=true
}
right_btn.onRelease= correct;
wrong_btn1.onRelease= wrong;
wrong_btn2.onRelease= wrong;
wrong_btn3.onRelease= wrong;
when i click the buttons(which i instance named accordingly) nothing happens..
-i want function correct to execute when i press right_btn.........................this code is place on the 1st frame
LORRDVID
Well, i think this u problem:
function correct(){
score+=1
nextFrame()
correctans._visible=true
}
function wrong(){
nextFrame()
wrongans._visible=true
}
// Here is u mistake
right_btn.onRelease = function(){
correct;
}
wrong_btn1.onRelease = function(){
wrong;
}
wrong_btn2.onRelease = function(){
wrong;
}
wrong_btn3.onRelease = function(){
wrong;
}