Posts Tagged ‘checkbox component actionscript 3.0 code found’

CHECKBOX ACTIONSCRIPT 3.0 CODE FOUND!!!

Here it is!!!

addEventListener(Event.CHANGE, changeHandler);
function changeHandler(evt:Event): void {
var str:String = “”;
if (cb1.selected == true) {
str += cb1.label + “\n”;
}
output.text = str;
}

I have the radio button code in the works but checkbox code first. This was such a pain to figure out!