i’m looking for an sample .fla that searches a mysql database and sends the info back to flash…using PHP or anyother …
or if u can help me with this
submit_btn.onRelease = submitForm;
function submitForm () {
this.sendVar = new LoadVars();
this.recvVar = new LoadVars();
this.done = false;
this.myData = new Array();
this.sendVar.venuename = venuename.text;
this.sendVar.state = state.getSelectedItem().label;
this.sendVar.city = city.getSelectedItem().label;
this.sendVar.areacode = areacode.text;
this.sendVar.venuetype = venuetype.getSelectedItem().label;
this.sendVar.agegroup = agegroup.getSelectedItem().label;
this.sendVar.musictype = musictype.getSelectedItem().label;
trace(“Sending " + this.sendVar.toString());
this.sendVar.sendAndLoad(’/search.php’, this.recvVar, ‘POST’);
this.getIt();
};
Loader.prototype.getIt = function() {
// Self-reference for use inside function() calls
var t = this;
this.recvVar.onLoad = function(success) {
if(success) {
for(var i = 0; i < this.total; i++) {
t.myData[“venuename”+i].htmlText = “<b>”+this[“venuename”+i]+”</b>"
t.myData[“address”+i].text = this[“address”+i]
t.myData[“city”+i].text = this[“state”+i]
t.myData[“zipcode”+i].text = this[“zipcode”+i]
t.myData[“areacode”+i].text = this[“areacode”+i]
t.myData[“phonenumber”+i].text = this[“phonenumber”+i]
// Get the data, and…
t.done = true;
}
}
}
};
function doneTF(targ) {
if(targ.done == true) {
clearInterval(int_doneTF);
this.gotoAndPlay(“results”);
}
};
// [EXECUTE]
stop();
var temp = new Loader();
int_doneTF = setInterval(this, ‘doneTF’, 50, temp);
stop();