-
[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!
-
Do you have a link to this game im interested to see it.
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|