main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
- layout="vertical"
- verticalAlign="middle"
- backgroundColor="white">
- <mx:XMLid="dp">
- <mlb>
- <leaguelabel="American League">
- <divisionlabel="East">
- <teamlabel="Boston" />
- <teamlabel="New York" />
- <teamlabel="Toronto" />
- <teamlabel="Baltimore" />
- <teamlabel="Tampa Bay" />
- </division>
- <divisionlabel="Central">
- <teamlabel="Cleveland" />
- <teamlabel="Detroit" />
- <teamlabel="Minnesota" />
- <teamlabel="Chicago" />
- <teamlabel="Kansas City" />
- </division>
- <divisionlabel="West">
- <teamlabel="Los Angeles" />
- <teamlabel="Seattle" />
- <teamlabel="Oakland" />
- <teamlabel="Texas" />
- </division>
- </league>
- </mlb>
- </mx:XML>
- <mx:Style>
- Tree {
- defaultLeafIcon: ClassReference(null);
- }
- </mx:Style>
- <mx:Treeid="tree"
- dataProvider="{dp.league}"
- labelField="@label"
- iconField="@icon"
- showRoot="true"
- width="320"
- rowCount="9"/>
- </mx:Application>