Hi,
I'm slowly getting my site together and have a button which when pressed displays, messages etc.. from a mysql database. I want to know how to get this info to load automatically when the actual flash movie loads, so I don't have to push my refresh/display. Heres the code I have for my display button.
display.onRelease = function() {
messages.htmltext = "";
myLoader = new LoadVars();
myloader.ran = random(999);
//again change the next line
myLoader.sendAndLoad("loader.php", myLoader, "POST");
myLoader.onLoad = function() {
for (i=0; i<this.n; i++) {
messages.htmltext += "Name: " + "<b>"+this["name"+i]+"</b>"+"<br>"+this["email"+i]+"<br><br>"+this["msg"+i]+"<br>"+" ----------------";
}
};
};
I'm unsure how to get this mysql data to load automatically.
Any help would be much appreciated. Thank You
I'm slowly getting my site together and have a button which when pressed displays, messages etc.. from a mysql database. I want to know how to get this info to load automatically when the actual flash movie loads, so I don't have to push my refresh/display. Heres the code I have for my display button.
display.onRelease = function() {
messages.htmltext = "";
myLoader = new LoadVars();
myloader.ran = random(999);
//again change the next line
myLoader.sendAndLoad("loader.php", myLoader, "POST");
myLoader.onLoad = function() {
for (i=0; i<this.n; i++) {
messages.htmltext += "Name: " + "<b>"+this["name"+i]+"</b>"+"<br>"+this["email"+i]+"<br><br>"+this["msg"+i]+"<br>"+" ----------------";
}
};
};
I'm unsure how to get this mysql data to load automatically.
Any help would be much appreciated. Thank You