ActionScript whizzes…
I am still blocked on this problem. I have customized a hangman game I got from the Flash 8 Bible. It’s working fine, BUT…the teachers I work with need some modifications.
-
the Latin teacher wants the letters J and V omitted from the selectable letters.
-
the French teacher wants things ADDED, like ? marks, ` and ’ and - marks, not to
mention a whole host of French vowels with accents.
I’ve included the .zip of the files.
I know it’s the GameController.AS file which holds the code.
Specifically:
// create alphabet as text and buttons
private function createAlphabet():Void {
mcAlphabet = this.createEmptyMovieClip("mcAlphabet", 1);
var nXPos:Number = 0;
for (var i:Number = 65; i <= 90; i++) {
var sLetter:String = String.fromCharCode(i);
var cgl:GameLetter = GameLetter(mcAlphabet.attachMovie("GameLetter", "cgl_" + sLetter, mcAlphabet.getNextHighestDepth(), {_x: nXPos, letter: sLetter}));
cgl.addEventListener("click", Delegate.create(this, onLetterClicked));
nXPos += 14;
}
}
I also know from my research that it’s the
for (var i:Number = 65; i <= 90; i++) {
line we’re looking at, because 65 is A and 90 is Z. *(so the instruction is to list A - Z) *
Now how to omit J and** V** and include the specific marks like ?, `, **’ **and - … ??
Thanks folks - I’m a lowly computer teacher, I REALLY appreciate your help!
[SIZE=5]~la Swear[/SIZE]