Well once I started I had to do another demo with Away3D. Here is some sort of typewriter. Just start typing (click anywhere on the stage to set focus). And just as you would expect backspace erases letters and hitting enter starts a new line.

Keyboard.CharCodeStrings was causing me headache. I just couldn’t get it work… but then found out that it is only available within the AIR 1.0 runtime. Fortunately I found Scott Ruttencutters CharCodeStrings Library (download). Thanks for sharing it Scott :) .

NOTE! Returned character codes are for US English.

Share

Comments

4 comments to “Away3D Typewriter”

  1. ScottNo Gravatar on September 10th, 2008 10:11 PM

    Hey there, just saw this post from last month. Looks like you are doing something Very similar to what I was working on when I built the charcode library. Glad it worked out well for you.

  2. Timo VirtanenNo Gravatar on September 10th, 2008 10:44 PM

    Yep. And your CharCodeStrings Library was great help :)

  3. ScottNo Gravatar on February 10th, 2009 4:05 AM

    Hey there, just FYI–somebody clued me into the fact that there is a String class function that will turn uint charcodes into characters for you–who knew?

    Try using:

    String.fromCharCode()

    It seems to work just fine.

  4. Timo VirtanenNo Gravatar on February 10th, 2009 7:56 AM

    Thanks Scott. I’ll try that.

Leave a comment