hello all ,
 
I am trying to display images in the Tilelist component whose path is given in the xml. The xml is located on the harddrive which is loaded in my mxml application as follows :
 
        import flash.events.*;
        import flash.net.URLLoader;
        import flash.net.URLLoaderDataFormat;
        import flash.net.URLRequest;
       
        public var myXML :XML;
 
         var XML_URL:String = "templateList.xml"
         var myXMLURL:URLRequest = new URLRequest(XML_URL);
         var myLoader:URLLoader = new URLLoader(myXMLURL);
        myLoader.addEventListener("complete", xmlLoaded);
      
         function xmlLoaded(evtObj:Event):void{ 
           myXML = XML(myLoader.data);
       }
      
 
I am using this myXML object as the dataProvider for tileList as follows  :
 
      <mx:TileList id="ListOfTemplates"  dataProvider="{myXML.template} " labelField="label" iconField="icon" >
       
         </mx:TileList>
 
the strucutre of the xml templateList.xml  is :
 
<root>
 <template>
            <icon>   sample1.jpg   </icon>
            <label>sample1</label>
 </template>
 <template>
             <icon> sample1.jpg </icon>
             <label>sample2</label>
 </template>
          :
          :
          :
 </root>
 
Please help me.
Thanks in advance
Mayur
 
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to