don't forget to rap it in an xmlCollection <mx:XMLList id="optionValues" > <root> <node label="A"/> <node label="B"/> </root> </mx:XMLList> <mx:PopUpMenuButton id="selectedOption" dataProvider= "{optionValues} " labelField="@label" showRoot="false" />
OR <mx:XMLList id="optionValues" > <node label="A"/> <node label="B"/> </mx:XMLList> <mx:PopUpMenuButton id="selectedOption" dataProvider= "{optionValues} " labelField="@label" showRoot="false" /> ----- Original Message ---- From: Paul Andrews <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, February 16, 2008 5:41:15 AM Subject: [flexcoders] List ItemRenderer woes I am prepared for a "Doh" moment. Can anyone explain why uncommenting the creation complete handler stops the menu from working? Paul <?xml version="1.0" encoding="utf- 8"?> <mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" layout="absolute" > <mx:XMLList id="optionValues" > <node label="A"/> <node label="B"/> </mx:XMLList> <mx:PopUpMenuButton id="selectedOption" dataProvider= "{optionValues} " labelField=" @label" /> <!--creationComplet e="selectedOptio n.label=' B'" /--> </mx:Application> ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping