Jump to content
xisto Community
sasa

Ui Component: Checkbox detect the checkbox value

Recommended Posts

hello, i am new user of flash and action script.currently, i am using Flash MX 2004 and creating a checkbox.however,what should i do to trace whether the checkbox is checked or not...i tried to use getValue() but it seems to be malfunctional....does this function no longer exist in Flash MX 2004? is there any other way?please help, i have been trying to get the checkbox value for few days already but still fail to do that...

Share this post


Link to post
Share on other sites

Flash MX has a new method to check for the check-state of checkboxes. It's called selected. Supposing your checkbox is named cbox, then cbox.selected would return you a boolean value stating whether its selected or not.

 

Hope this helps :(

Share this post


Link to post
Share on other sites

hello, i am new user of flash and action script.

currently, i am using Flash MX 2004 and creating a checkbox.however,what should i do to trace whether the checkbox is checked or not...i tried to use getValue() but it seems to be malfunctional....does this function no longer exist in Flash MX 2004? is there any other way?

 

please help, i have been trying to get the checkbox value for few days already but still fail to do that...

 

I am also quite fresh in AS, I ever fiddled with some UI component, don't know the UI checkbox from the UI component can be helpful or not.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.