A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: hangman

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    10
    Any ideas on how I can get my hangman to get the words from a database?? instead of from writing them in the flash-script....
    I want the administrator to be able to choose the words, without going into the flash-script....





  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    242
    The easiest way would be to use a .txt file as your database. Flash can only understand variables that are URL encoded, ie: name and value pairs such as '?word1=this&word2=that'. It would be pretty easy for someone to edit such a list as long as they maintain the URL encoded structure.

    You can load variables from a text file using the *shock* loadVariables command. Check out FK or http://www.actionscripts.org for tutes.

    Hope this helps

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