This content has been marked as final. Show 4 replies
First try this:
You will also need to set the selected property when the user clicks the radio:
See if that helps anything.
Searching the LiveDocs revealed the answer. Under the topic "Using an E4X expression in an <mx:Binding> tag" I found that if instead of
<mx:Binding source="myRadioButton.selected" destination="data.correct" />
It works just perfectly.
Apparently binding between XML and the selected property of a radio button (which is of type boolean) needs the <mx:Binding /> rather than the in-tag curly brace notation.
P.S. The link on livedocs is here:
I tried the code on the example on the livedocs link you posted to see how it works, but I get errors:
Implicit coercion of a value of type mx.binding:Binding to an unrelated type Binding. [Generated code (use -keep to save): Path: Binding-generated.as, Line: 238, Column: 34] Binding April 5, 2007 5:11:42 PM 2783
Why is that?
Hmm... I'm not sure. I didn't actually try to run that code myself - I just took the idea of using the Binding tag from that page and it worked in my application.