Hello Friends,
I need a small help from you guys. I want to display a list box in a diferent way. I have uploaded the image as well ie what exactly am looking for and how the list box has to look. pls refer my attachment. i am parsing the xml data and it’s coming fine in list box. but my reqmnt is the look n feel of list box, can u pls help me out.
flash code :
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest(“news1.xml”));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseNews(xmlData);
}
function ParseNews(xml:XML):void {
var config:XMLList = xml.item.title;
for each (var Title:XML in config) {
my_lst.addItem({label:Title, data:Title});
}
}
xml data :
<?xml version=“1.0” encoding=“iso-8859-1”?>
<config>
<item>
<title>Cameras</title>
</item>
<item>
<title>PlP</title>
</item>
<item>
<title>Add A Call</title>
</item>
<item>
<title>Layout</title>
</item>
<item>
<title>Participants</title>
</item>
</config>
waiting for your replies
rajesh