kroma
03-21-2005, 05:13 PM
Hello again... :)
I have a function for checking the value of a series of 17 checkboxes... (choice0, choice1, choice2 etc. through to choice16).
I want to check to see if they are selected or deselected so I have started to write the following function:
function checkboxes()
{
for (i = 0; i < 17; i++)
{
isboxchecked = this["choice"+i].getEnabled();
trace(isboxchecked);
}
}
However this simply returns the word "undefined" 17 times in the trace window!
If I replace the word getEnabled, however, with getLabel - the trace window happily displays the text associated with each of the checkboxes with no problems at all...
So can anyone tell me what is wrong with the way I am using getEnabled ?
Thanks alot!
Simon.
I have a function for checking the value of a series of 17 checkboxes... (choice0, choice1, choice2 etc. through to choice16).
I want to check to see if they are selected or deselected so I have started to write the following function:
function checkboxes()
{
for (i = 0; i < 17; i++)
{
isboxchecked = this["choice"+i].getEnabled();
trace(isboxchecked);
}
}
However this simply returns the word "undefined" 17 times in the trace window!
If I replace the word getEnabled, however, with getLabel - the trace window happily displays the text associated with each of the checkboxes with no problems at all...
So can anyone tell me what is wrong with the way I am using getEnabled ?
Thanks alot!
Simon.