Groups | Blog | Home
all groups > flash data integration > may 2007 >

flash data integration : Flash and PHP


joeschmoesdf
5/18/2007 12:00:00 AM
I am trying to make a search box in flash however no matter what I do I cant
manage to make it work...

here is the script in highlighted form http://pastebin.ca/494701

and the PHP if anyone wants to or needs to see it http://pastebin.ca/494567





on (release)
{

myVars2 = new LoadVars();
myVars2.search = Search.text
myVars2.action = 'search';
myVars2.sendAndLoad('search.php', myVars2, 'POST');
myVars2.onLoad = function()
{

mainTag2 = new XML();
elementTag2 = new XML();
dataList2 = new Array();
elementList2 = new Array();
mainTag2 = this.firstChild;
if (dataXML2.loaded) {

if (mainTag2.nodeName == "dataSet") {

dataList2 = mainTag2.childNodes;
for (i=0; i<=dataList2.length; i++) {
if (dataList2[i].nodeName == "data") {
elementList2 = dataList2[i].childNodes;
for (j=0; j<=elementList2.length; j++) {
elementTag2 = elementList2[j];
elementType2 = elementTag2.nodeName;
if (elementType2 == "questname2") {
Name2 = elementTag2.firstChild.nodeValue;
}
if (elementType2 == "Solution2") {
solution2 = elementTag2.firstChild.nodeValue;
}
if (elementType2 == "Submited2") {
submited2 = elementTag2.firstChild.nodeValue;
}
if (elementType2 == "Reward2") {
reward2 = elementTag2.firstChild.nodeValue;
}

}
// Adds the label and data to the URL.
var listData2 = { Solution2:solution2, Submited2:submited2,
Reward2:reward2};
listBox2.addItem(Name2, listData2);
}
}
}
}
// Sets the change handler for the Component named 'dropDown'.
listBox2.setChangeHandler("SelectItem2 ");





}
}
MotionMaker
5/18/2007 4:58:12 PM
1. What is the issue?

2. In the meantime place this
myVars2.sendAndLoad('search.php', myVars2, 'POST');
after the
myVars2.onLoad = function()
joeschmoesdf
5/19/2007 2:06:45 AM
AddThis Social Bookmark Button