A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8]URGENT!! Hangman game

  1. #1
    Member
    Join Date
    Jul 2008
    Location
    Čakovec, Croatia
    Posts
    34

    Unhappy [F8]URGENT!! Hangman game

    I've created a Hangman Game which loads words from XML File. When a word is loaded, my function loops through loaded word (character by character) and than put a dash for each character.

    The problem is next:
    In some words in XML File i have white space (which is necessary because the words are from German language and there must be a white space to divide the article and the word itself).

    How to achieve to, when a white space between the article and the word is recognized (or a white space at any position), put a white space (blank) instead of a dash?

    I know how to loop through the chosenWord character by character, but right now the white space from XML File is also recognized as a character which should be guessed! That is what I want to avoid!

    I've put the whole code in attachment file!

  2. #2
    Senior Member
    Join Date
    May 2005
    Location
    Wisconsin
    Posts
    181
    Do you have a link to this game im interested to see it.

  3. #3
    Member
    Join Date
    Jul 2008
    Location
    Čakovec, Croatia
    Posts
    34

    Hangman .fla document

    Here is my original document.

    I've made some changes inside my function (originally I've created it for math so I didn't need blank spaces).

    The problem is in the part newLetter.onRelease function - don't now how to slice the var displayedText accordingly.

    If anyone can help?

    PS For XML see Hangman_xml.doc in previous post.

  4. #4
    Member
    Join Date
    Jul 2008
    Location
    Čakovec, Croatia
    Posts
    34

    Red face Hangman Game

    Don't bather any more, couldn't wait so I've soled the problem on my own!

    Thanks anyway,

    avukovi4

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