This application is without problems with Flex3 but Flex4 throws compile exception: 1120: Access of undefined property myXml. Problem is binding 'enabled="{a}"'.
Source: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ [Bindable] private var a:Boolean = false; ]]> </mx:Script> <mx:MenuBar x="10" y="10" labelField="@label"> <mx:XMLList id="myXml"> <menuitem label="Menu"> <menuitem data="test" label="Test" type="check" enabled="{a}"/> </menuitem> </mx:XMLList> </mx:MenuBar> </mx:Application> What does it mean ??