I know I can do this in MXML:
<s:CheckBox label="Some Text" lineThrough="true" />
But how can I do the same thing programatically? The following doesn’t work:
var newCheckBox:CheckBox = new CheckBox;
newCheckBox.label = "Some Text";
newCheckBox.lineThrough = "true"; // Flex code help doesn't see "lineThrough"
dummyContainer.addElement(newCheckBox); // Just some dummy container to add the element to.
1 Answer