O'Reilly logo

ActionScript Graphing Cookbook by Peter Backx, Dominic Gélineau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mapping keyboard usage in 3D, part 2: The data

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.

Getting ready

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required