Question
Convert number to letter
Hi there
I am trying to find a way to convert a number to a character for a game I am working on. Currently the users score can be sent to a friend via a query string e.g. www.mygame.com/game?usersscore=111.11
This is not ideal as all the user needs to do is alter the query string to automaitcally change their score. So what I want to do is disguise the score as a series of random letters. e.g. 123.12 = abc.ab
Then when the flash reads in the query string abc.ab it converts it back to the score of 123.12
I have looked at converting the score to hexidecimal to disguise it but can you convert a decimal number with a point in it e.g.22.5 or would it only except whole numbers?
Any help on this would be much appreciated
Trevor
I am trying to find a way to convert a number to a character for a game I am working on. Currently the users score can be sent to a friend via a query string e.g. www.mygame.com/game?usersscore=111.11
This is not ideal as all the user needs to do is alter the query string to automaitcally change their score. So what I want to do is disguise the score as a series of random letters. e.g. 123.12 = abc.ab
Then when the flash reads in the query string abc.ab it converts it back to the score of 123.12
I have looked at converting the score to hexidecimal to disguise it but can you convert a decimal number with a point in it e.g.22.5 or would it only except whole numbers?
Any help on this would be much appreciated
Trevor
