Variable within value of radio button

In Flex 3, I have a radio button group with 4 radio buttons.  On one of these buttons I would like to include a variable within the VALUE assignment:

Example:  
<mx:RadioButton x="35" y="55" label="=" value="WHERE DispensedAmount = MYVARIABLE" textRollOverColor="#FFFFFF" groupName="AmountRadioGroup" fontFamily="Arial" color="#FFFFFF" fontSize="12" id="AmountRadioButton2"/>

Also, on another radio button I would like to include the contents of a text box within the value assignment:

<mx:RadioButton x="35" y="55" label="=" value="WHERE DispensedAmount = myText.text" textRollOverColor="#FFFFFF" groupName="AmountRadioGroup" fontFamily="Arial" color="#FFFFFF" fontSize="12" id="AmountRadioButton3"/>

derossAsked:
Who is Participating?
 
deepanjandasCommented:
try this:
[Bindable]
private var MYVARIABLE:String = "";

<mx:RadioButton x="35" y="55" label="=" value="{MYVARIABLE}" textRollOverColor="#FFFFFF" groupName="AmountRadioGroup" fontFamily="Arial" color="#FFFFFF" fontSize="12" id="AmountRadioButton2"/>

Also, on another radio button I would like to include the contents of a text box within the value assignment:

<mx:RadioButton x="35" y="55" label="=" value="{myText.text}" textRollOverColor="#FFFFFF" groupName="AmountRadioGroup" fontFamily="Arial" color="#FFFFFF" fontSize="12" id="AmountRadioButton3"/>

Open in new window

Note the curly brackets.

Warm Regards
Deepanjan Das
0
 
derossAuthor Commented:
Great Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.