3 Replies Latest reply on May 6, 2008 5:50 PM by ntsiii

    How can I fetch the element's attribute value by AS in a mxml file?

    liaoyateam
      Sample code:
      <mx:MenuBar id="myMenuBar" labelField="@label" width="100%">
      <mx:XMLList>
      <menuitem label="MenuItem A">
      <menuitem label="SubMenuItem A-1" enabled="false"/>
      <menuitem label="SubMenuItem A-2"/>
      </menuitem>
      </mx:XMLList>
      </mx:MenuBar>
      How can I fetch the myMenuBar's width value by AS in a mxml file. I can't find any API about it!