Flex 的新States 将标记有includeIn/excludeFrom 的视觉项重新设置为父项。如果我有一个包含 5 个受状态控制的子/元素的组 (MainGroup),是否还有办法获得对 MainGroup 的子项的引用?mainGroup.numChildren 和 mainGroup.numElements 不起作用,因为孩子们重新成为父母。充其量,它们显示 1。
<s:states>
<s:State name="view1State" />
<s:State name="view2State" />
<s:State name="view3State" />
<s:State name="view4State" />
</s:states>
<s:Group id="mainGroup">
<shipping:OrderShipping id="view1"
includeIn="view1State" />
<payment:OrderPayment id="view2"
includeIn="view2State" />
<verification:OrderVerification id="view3"
includeIn="view3State" />
<confirmation:OrderConfirmation id="view4"
includeIn="view4State" />
</s:Group>