Skip to main content
This topic has been closed for replies.
Correct answer kglad

use:

var binary_score:String = decimal_score.toString(2);

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 26, 2013

use:

var binary_score:String = decimal_score.toString(2);

Known Participant
April 27, 2013

this script use on click submit score

kglad
Community Expert
Community Expert
April 27, 2013

var sendLV:LoadVars=new LoadVars();

receiveLV:LoadVars=new LoadVars();

receiveLV.onData=function(src):Void{

//do whatever with return from php

}

yourbutton.onClick=function(){

sendLV.binary_score=decimal_score.toString(2);

sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

}