PDA

View Full Version : checkbox



sanman918
September 26th, 2003, 08:49 PM
hey does anyone know how to check a value on a checkbox? I have right now

stats.setChangeHandler("myHandler");
function myHandler(component) {
statsob = stats.getSelectedItem().value;
}

Will that grab the true or false statment from the checkbox? Becuase all i need is someway to tell if it is true or false and have if statsments for it?

awligon
September 26th, 2003, 10:09 PM
getState() returns the bool for the state of the checkbox (T/F)

http://www.macromedia.com/support/flash/ts/documents/checkbox_smart_clip.htm


stats.setChangeHandler("myHandler");
function myHandler(component) {
statsob = stats.getState();
}


:sigh: don't know, but it's worth a shot.

sanman918
September 27th, 2003, 03:22 PM
nope that didn't work out... any other ideas?

and I'm using MX if that helps.....