Hey guys,
[Flash8]
Basically I’m making a high score table and the problem I am having is that for some reason I can’t see any of the information from my database table. I believe my php file is correct, I think the prob is somewhere in my action script but I just can’t see it.
I have attached the flash file and the php file. My database table was on wamp and have attached a screen shot of the table.
Flash file:
http://rapidshare.com/files/108043291/highscore.zip.html
Image of database table:
http://img225.imageshack.us/img225/2702/databasetm2.jpg
Action script:
stop()
lv.onLoad = function(){
numRows = lv.nRows;
for(var n=0; n!=numRows; n++){
obj = {};
obj.Name = lv[‘name’+n];
obj.N0 = lv[‘number_of_minimum_attempts’+n];
obj.N1 = lv[‘number_of_attempts’+n];
obj.N2 = lv[‘number_of_wrong_attempts’+n];
obj.D = lv[‘date_time’+n];
arr[n] = obj;
}
makeFields(numRows); // show all results
};
function makeFields(num){
for(var n=0;n!=num;n++){
_root[“name”+n].text = arr[n].Name; name2.text, name3.text, name4.text, name5.text, name6.text, name7.text, name8.text, name9.text, name10.text
_root[“minimum”+n].text = arr[n].N0; minimum2.text, minimum3.text, minimum4.text, minimum5.text, minimum6.text, minimum7.text, minimum8.text, minimum9.text, minimum10.text
_root[“attempts”+n].text = arr[n].N1; attempts2.text, attempts3.text, attempts4.text, attempts5.text, attempts6.text, attempts7.text, attempts8.text, attempts9.text, attempts10.text
_root[“wrong”+n].text = arr[n].N2; wrong2.text, wrong3.text, wrong4.text, wrong5.text, wrong6.text, wrong7.text, wrong8.text, wrong9.text, wrong10.text
_root[“date”+n].text = arr[n].D; date2.text, date3.text, date4.text, date5.text, date6.text, date7.text, date8.text, date9.text, date10.text
}
}
Thanks guys