把具体的题目给我。
要思路?还是代码?
var score:uint=0;
button_1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void {
if (A.selected) {
score+=2;
} else if (B.selected) {
score+=1;
}
trace(score);
play()
}
你能说仔细点吗?