Hi, I'm making a game that needs a highscore table. I know it can be done with php, but I don't have a site that allows php so I thought about making it using xml but i've never used it either. So I have some questions about it
1) How can it be done, do you know of any tutorial?
2) Can it be done only using flash or do I need some other program?
3) Can I test the game in my pc or do I need to upload it to a server? (I also have this doubt about php, can I test it in my pc?)
Thanx in advance
This is MC. His _parents sent him to stop() by the super market to buy some _root beer if he wanted to gotoAndPlay() with his friends at the park later.
Flash itself cant save any kind of file, even xml. You can create xml highscore table, but you still need php (or similar) to save the data received from Flash.
You can install php in your pc too and it works, but I think you need something more with it (Windows World Wide Web Service?). Basically you need to set up your pc as server or something (not too sure how exactly).
One way or the other you will need something that handles xml on the server side. There is a way to do a local high score table, but that would be exclusive to one user.
With that being said, if you need a high score system, you might want to consider pnFlashGames, they have a pre-built high score system you can use.
If you are using php for a high score system you will have to either upload the page to the server to test it, or hard code the location of the php page (i.e. Call the page using "http://www.yoursite.com/addscore.php" instead of just "addscore.php"
If you wanted it to be one players top scores though you could store the scores in the users shared objects. But to have an online storage you would need php, to txt file or php, to MySQL database.
Originally Posted by tonypa
Flash itself cant save any kind of file, even xml.
as long as you're online flash can only save shared objects (which are kindy useless for an hs-table) or through a serverside script (php, asp.net ...), flash 5 had an undocumentes fs command for the projector which allowed you to save a textfile (offline, though). but for the newer flash versions you'll need some kind of 3rd party tool ...
i wrote a "socket-saver" some time ago which used sockets to save data to a file, or you write a wrapper app (in vb, for instance) or use something like zinc...
(last parts all offline, although you could use the socket-saver from a browser, too)
I think I'll have to use php with something like that Tonypa said to set my pc as a server. But now i've been looking for tutorials on how to do that highscore table to store the variables in a .txt file but what I've got doesn't fit my needs, I want something the simplest way it could be, the only thing I need is that flash sends the variables of the scores, then php gets that variables (which I still don't know how to do), saves them into a txt file this way: score1=x&score2=x&score3=x&name1=x&name2=x.... so then I can use loadVariables in flash to read them from the .txt file.
I'm posting a .fla file of the score table I took from the game i've done. It saves the scores but only in your pc (that isn't really cool for a web game is it?).
Could someone please tell me how to do that the simplest way (the code in flash and in php) if it's not too much to ask?
Thanx in advance again.
This is MC. His _parents sent him to stop() by the super market to buy some _root beer if he wanted to gotoAndPlay() with his friends at the park later.
Hello guys I would like to ask if is it possible to make a "top score or hall of fame features" on a flash mobile game without using PHP/MySQL/XML etc.?
we got a project on school that needs to have a hall of fame features on a flash mobile game, but I don't have an idea on how to do it, could you guys help me, kindly give me some sample codes or source code on how to do it on flash (mobile game)?