I forgot to mention the labelField works fine (displays text in the 
TileList) but the iconField doesn't display the associated image.



--- In flexcoders@yahoogroups.com, "daddyo_buckeye" <[EMAIL PROTECTED]> 
wrote:
>
> I'm trying to populate a TileList with data from an XML file. Any 
help 
> is greatly appreciated.
> 
> Here's the data from the XML file:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <uniforms>
>       <patternGroup>
>       <groupID>kj02</groupID>
>       <sport>Basketball</sport>
>       <groupStyle>Basketball Uniform</groupStyle>
> 
        <thumbnail>assets/basketball/thumbnailsPNG/kj02.png</thumbnail
>
>       </patternGroup>
> </uniforms>
> 
> 
> Here's the code for the application file:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
> layout="absolute" creationComplete="uniData.send()">
> 
> <mx:Script>
>       <![CDATA[
>       [Bindable]
>       private var uniXML:XMLList;
>                       
>       private function uniHandler(evt:ResultEvent):void {
>       uniXML=evt.result.patternGroup;
>       }
>       ]]>
> </mx:Script>
> 
> <mx:HTTPService id="uniData" url="assets/uniforms.xml" 
> result="uniHandler(event)" resultFormat="e4x"  />
> 
> <mx:TileList dataProvider="{uniXML}" labelField="groupID" 
> iconField="thumbnail" width="400" height="400" />
> 
> </mx:Application>
> 
> What am I missing here?
> 
> thanks.
>


Reply via email to