>>//In my script block >>var comboProvider:XMLList = incomingXML..MGGenre;
Where in your script block? This looks like it is executing in your result handler function, but since you are instantiating the comboProvider inside this function, it only has a local scope to the function. In order for the genreBox to see it, it should be a public var in your script block. HTH, Ryan ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeremy.carter_mg Sent: Friday, November 07, 2008 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Having trouble with XMLList I am calling a webservice with Flex3.0, the result format is specified as e4x. the event.result shows up as a XMLList when I try and debugg the app. Beyond this I am having a hell of a time parsing this thing. Anyone have some insite? How would I set the dataprovider to these results for a combobox and have the labelField = "MGGenre.Name" and the value = "MGGenre.GenreID" Iv'e tried: //In my script block var comboProvider:XMLList = incomingXML..MGGenre; //In MXML <mx:ComboBox id="genreBox" dataProvider="{comboProvider}" labelField="Name"/> //Then to use the selected value value = XML(genreBox.selectedItem).GenreID; But I get the error: "1120: Access of undefined property comboProvider" I can't figure out what I'm doing wrong, please help... Here is a sample of my data: <GetAudioGenresResponse xmlns="http://MyWebSite.com/Webservices/Serrano2 <http://MyWebSite.com/Webservices/Serrano2> " xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ <http://schemas.xmlsoap.org/soap/envelope/> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance> " xmlns:xsd="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> "> <GetAudioGenresResult> <MGGenre> <GenreID>7</GenreID> <Name>BLUES</Name> <Preferred>true</Preferred> <Styles> <MGStyle> <GenreID>7</GenreID> <Name>ACOUSTIC BLUES</Name> <Preferred>true</Preferred> <StyleID>120</StyleID> </MGStyle> <MGStyle> <GenreID>7</GenreID> <Name>BRITISH BLUES</Name> <Preferred>true</Preferred> <StyleID>121</StyleID> </MGStyle> </Styles> </MGGenre> <MGGenre> <GenreID>12</GenreID> <Name>CHILDREN'S</Name> <Preferred>true</Preferred> <Styles> <MGStyle> <GenreID>12</GenreID> <Name>CHILDREN'S FOLK</Name> <Preferred>true</Preferred> <StyleID>202</StyleID> </MGStyle> <MGStyle> <GenreID>12</GenreID> <Name>EDUCATIONAL</Name> <Preferred>true</Preferred> <StyleID>203</StyleID> </MGStyle> <MGStyle> <GenreID>12</GenreID> <Name>FAIRY TALES</Name> <Preferred>true</Preferred> <StyleID>204</StyleID> </MGStyle> </Styles> </MGGenre> </GetAudioGenresResult> <ResultCode>Success</ResultCode> </GetAudioGenresResponse> This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.