It appears that the spark CheckBox might have a defect and I would like to confirm if anyone has seen it. I didn't see it in the issues tracker. If you have a CheckBox with includeInLayout set to false, then when you set the label property, the display list does not update and show the text. I've tried multiple ways of invalidating the display to get it to update. I'm not sure if this is a bug, or if it's a quirk of the framework or if I'm missing something. The following code as the main application file will illustrate the issue. I ran into it using 4.15 SDK but it also happens in the latest 4.16.1
Anyone else run into this or know the cause? <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication creationComplete="handleCreationComplete()" xmlns:base="*" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <fx:Script> <![CDATA[ import spark.components.Label; public function handleCreationComplete():void { blah.label = "test"; } ]]> </fx:Script> <s:Group> <s:CheckBox id="blah" includeInLayout="false" /> </s:Group> </s:WindowedApplication> Kyle McKnight Senior UI Engineer - Accesso 321.347.7318 (M)