In this recipe, we'll replace the random data that we added to the keyboard object with the actual data taken from:
http://en.wikipedia.org/wiki/Letter_frequency.
We will only add three languages, but you'll see that you can add as many as you want.
To display a combobox that lets the user pick the language to show, we will use the minimalcomps library. It can be downloaded from https://github.com/minimalcomps/minimalcomps/downloads. This library is, as the name implies, an extremely basic implementation of many graphical components. Due to its simplicity, it is also very easy to use in any ActionScript program.
To use it in your project, download it and place the SWC file in the lib
directory of the project. Inside FlashDevelop, right-click on the file and choose Add to library. This will make all the classes inside the file available to your programs.
We'll, of course, continue from the previous recipe.