A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: High Scores...

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    2

    High Scores...

    Creating a high score table in flash, using external file handling, can be achieved using server-side scripts, such as PHP. However, as this is not allowed for my game (school project), I need a way to write a few variables directly to a text file and read it back again. Is this possible?

    I am using AS 2.0.

    Any other ways in which a high score table, which is portable and can be saved and updated, will be welcomed.


    If anybody could help me out I would greatly appreciate it.

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    No, you can't change the content of a textfield from inside Flash WITHOUT the aid of PHP! What you can do, since it's a school project, is to save the score in the SharedObject, and retrieve the info from there as well. Do a quick google search on SharedObject Tutorial AS2, and you'll find lots of good stuff
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    Is a shared object portable? Since my project will be used and played on multiple computers, it needs to be so.

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    No, it's not portable (it is actually, but then you'll have to explore the SharedObject folder hidden deep in C directory, and try to guess or use a .sol opener software to view a lot of sharedobject files to find yours, and then copy and paste it in another computer, but I can't promise you it will work), but a new SharedObject is created in each computer, so the highscores in one computer will only display the highscores saved on that computer!
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center