|
but i cant seem to properly send the variables in flash
The author of the scripts tells me to use this actionscript
--------------------------------
serverURL = "http://www.dummysite.com/hiscore/"; gameID = "MYFLASHGAME"; submit_btn.onRelease = function() { lv = new LoadVars(); lv.onLoad = function(state) { if (this.result == "success") { result_txt.text = "Successfully Added Score"; } else if (this.result = "fail") { result_txt.text = this.reason; } } lv.gameID = gameID; lv.userID = username.text; lv.score = randomscore.text; lv.action = "addNew"; lv.sendAndLoad(serverURL + "hiscore.php", lv, "POST"); result_txt.text = "Submitting..."; }
-------------------------------
I've inputted all the variables correctly but i cant get the **** thing to work.
also this part
-----------------------
submit_btn.onRelease = function() { lv = new LoadVars(); lv.onLoad = function(state) { if (this.result == "success") { result_txt.text = "Successfully Added Score"; } else if (this.result = "fail") { result_txt.text = this.reason; } }
---------------------
will not be accepted by my flash editor (Swishmax)
It's really freaking me out. Anybody any advice.?
|