It's better to declare a boolean value to pass throw your radiobuttons than passing as a RadioButton.
Because as the error says, it's unknowed as a type pass type. against the convert without passing extra arguments. Best On 1/18/07, Steve Cox <[EMAIL PROTECTED]> wrote:
All, When using the code behind technique to declare the controls you will use in the MXML I have come across an issue I cannot work out a solution for. Usually for controls declaring the id of the control inside the code behind class as public you can access a control you added to mxml. So for example you would use: public var myRadioButton : RadioButton Where the RadioButton in your MXML had the id of myRadioButton. Now the issue.. What if that RadioButton is inside a Repeater? For the code to compile the type (RadioButton) must be the same in both the MXML and the class, however when the repeater runs it builds up an Array called myRadioButton each containing an instance of the RadioButton! However I cannot declare myRadioButton as an Array inside the class because the compiler thinks it should be a repeater! When running a repeater I get the following error: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.controls.RadioButton. What have I missed? Any ideas? Cheers, Steve
-- ---------------------------- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta

