# Displaying "foreign" characters in AS 2

**URL:** <https://forum.kirupa.com/t/displaying-foreign-characters-in-as-2/217962>\
**Category:** Uncategorized\
**Created:** [March 3, 2007, 3:46pm UTC](https://forum.kirupa.com/t/displaying-foreign-characters-in-as-2/217962 "2007-03-03T15:46:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![la\_Swear](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@la\_Swear](https://forum.kirupa.com/u/la_Swear)\
**Post date:** [March 3, 2007, 3:46pm UTC](https://forum.kirupa.com/t/displaying-foreign-characters-in-as-2/217962/1 "2007-03-03T15:46:16Z")

</div>

hello scripting geniuses,

I am working on modifying some hangman games for the language teachers where I teach…

I am _stumped_ about how to alter the letter options in the ActionScript.

For instance:  
[LIST]  
[_]The Latin teacher wants to omit the letters **J** and **V** since in the Latin language the letters do not exist.  
[_] The French teacher is spooking me even more with phrases like:  
**Comment t’appelles-tu?**. How on EARTH will I get the **'** , **-** and **?** marks in ??  
[\*]What about the **’** and **`** marks over certain vowels?[/LIST]The existing code says this:

```auto

// 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;
        }
    }

```

Now from my research I understand that this line:

```auto
 for (var i:Number = 65; i <= 90; i++) {

```

essentially sets the variable to be A-Z (capital alphabet).

how do I

a) omit letters  
b) add letters +/or characters?

Oh please wise makers of code and .flas… help a frazzled computer teacher?

…peace

~Swearingen
