| Procedure for FCheckBox: |
| |
|
| 1. |
Drag the component on to stage. |
| 2. |
Right click on it, select "Edit in place"
from the right click menu options. |
| 3. |
Do you see the little "a" on the Actions Layer,
right click on it select "Actions" from the right click
menu options. |
| 4. |
Find the line
FCheckBoxClass.prototype.setCheckState
= function( checkedValue ); |
| 5. |
Few lines below that you'll see
states.gotoAndStop(
"checkedEnabled" ); |
| 6. |
Add this just below that line
this.fLabel_mc.setColor(this.fLabel_mc.hostComponent.styleTable.textSelected.value);
|
| 7. |
That's it! Just put this line in the timeline containing
your component
componentInstanceName.setStyleProperty("textSelected",
0x00FF00);
(replace 0x00FF00 with your own color) |
| |
|
| Procedure for FRadioButton: |
| |
|
| 1. |
Drag the component on to stage. |
| 2. |
Right click on it, select "Edit in place"
from the right click menu options. |
| 3. |
Do you see the little "a" on the Actions Layer,
right click on it select "Actions" from the right click
menu options. |
| 4. |
Find the line
FRadioButtonClass.prototype.setState
= function( selected ); |
| 5. |
Few lines below that you'll see
this.frb_states_mc.gotoAndStop("selectedEnabled"); |
| 6. |
Add this just below that line
this.fLabel_mc.setColor(this.fLabel_mc.hostComponent.styleTable.textSelected.value);
|
| 7. |
That's it! Just put this line in the timeline containing
your component
componentInstanceName.setStyleProperty("textSelected",
0x00FF00);
(replace 0x00FF00 with your own color)
|