I'm updating the code here to include a reference to the outer class. I'm not 100% certain this is what you're looking for, but I'll do my best to give you a
OuterClass:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*">
<local:InnerClass id="inner" width="100%" height="100%" />
</mx:VBox>
InnerClass:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:CheckBox id="innerCheckbox" selected="true" />
</mx:VBox>
Edit: Here's the updated version of the Application
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal" xmlns:local="*">
<mx:Binding source="{outer.inner.innerCheckbox.selected.toString()}"
destination="checkLabel.text" />
<mx:Label id="checkLabel" />
<local:OuterClass id="outer" width="100%" height="100%" />
</mx:Application>
Here's a brief explanation of what this does:
There are 3 MXML files:
- OuterClass: an MXML file which contains InnerClass
- InnerClass: an MXML file which contains a checkbox
- Application: the main app which contains the OuterClass
There is a binding in the Main app which takes the checkbox value (via the Object hierarchy) and sets the Label's text field appropriately. This works just like ActionScript would: with the . operator to access nested objects.
When the checkbox updates, the value of the Label updates accordingly.
Hope this makes things a little clearer.