Replacing mx cb with mx 2004 cb

Hello,

I would like to first thank you for your time. The following code uses an external php file and xml to load two combo boxes and a Dynamic Text field. I would like to replace the two flash mx combo boxes with two flash mx 2004 combo boxes. I would imagine that this is an easy thing for a flash expert, however I’m a newbee. The code is below any help would be greatly appreciated.

First off here is a link with a working example. Also the fla is here so you can download it, if you choose to.
http://www.flash-db.com/Components/?swfID=13&sComType=Combo%20Box

//first code in fla////
function convertXML () {
mainTag = new XML();
elementTag = new XML();
dataList = new Array();
elementList = new Array();
mainTag = this.firstChild;
if (dataXML.loaded) {
if (mainTag.nodeName == “dataSet”) {
dataList = mainTag.childNodes;
for (i=0; i<=dataList.length; i++) {
if (dataList*.nodeName == “data”) {
elementList = dataList*.childNodes;
for (j=0; j<=elementList.length; j++) {
elementTag = elementList[j];
elementType = elementTag.nodeName;
if (elementType == “name”) {
Name = elementTag.firstChild.nodeValue;
}
if (elementType == “dataRow”) {
Info = elementTag.firstChild.nodeValue;
}
if (elementType == “desc”) {
Desc = elementTag.firstChild.nodeValue;
}
}
// Adds the label and data to the URL.
var comboData = { info:Info, desc:Desc};
comboBox.addItem(Name, comboData);
}
}
}
}
}

// Sets the change handler for the Component named ‘dropDown’.
comboBox.setChangeHandler(“SelectItem”);

// This is the Change handler it tells the the movie what to do when someone clicks on an item.
function SelectItem(){
// Gets rid of Current items
comboBox2.removeAll();

// Split array’s and assign to ListBox.
Info = comboBox.getSelectedItem().data[“info”];
DescN = comboBox.getSelectedItem().data[“desc”];
InfoArray = Info.split(",",6);
DescArray = DescN.split(",",6);

numLoop = InfoArray.length;

for(i=0; i<numLoop; i++) {
var comboBox2Data = { info:DescArray*};
comboBox2.addItem(InfoArray*, comboBox2Data);
}
// Set Change Handler for List Box.
comboBox2.setChangeHandler(“SelectItemList”);
}
// Change handler for the ListBox…
function SelectItemList(){
itemInfo = comboBox2.getSelectedItem().data[“info”];
}

///second code in fla///

dataXML = new XML();
dataXML.onLoad = convertXML;

// Just change this to your file that generates or contains the XML your going to use.
// Make sure to change the real path the the file - chances are it will not be in a folder
// called Files.
dataXML.load(“http://hosting.mixcat.com/coolman1985/ComboBox_XML_ComboBox.php”);

///// PHP file////

<?php
$NameArr = array(“Software”, “Books”, “Music”);
$DataArr = array(“Flash MX, Adobe Photoshop, Mandrake Linux, Apache Web Server”, “PHP for Flash, XML and Flash, PHP and MySQL, XML for dummy’s”, “Alkaline Trio, Hot Water Music, Jimmy eat world”);
$desc = array(“Flash MX from Macromedia /n Price: 500$, Photoshop - A image/photo editing tool from Adobe, One of the best Linux Distributions, The best Web server on the planet”, “A great book from friends of Ed, XML Studio Lab from Friends of Ed, Great PHP and MySQL book, Need help with XML”, “Buy the latest CD, The new Hot Water Music CD, Just came out with a new CD.”);
$numReturn = count($NameArr);
$i = 0;

// Prints out the necessary XML
print “<dataSet>”;
while ($i < $numReturn) {
print “<data>”;
print “<name>”.$NameArr[$i]."</name>";
print “<dataRow>”.$DataArr[$i]."</dataRow>";
print “<desc>”.$desc[$i]."</desc>";
print “</data>”;
$i++;
}
print “</dataSet>”;
?>