[Flash MX 2004] - DOS interface, script parser Q's?

Hi,

I’ve been spending a lot of time coding l8ly workin on numerous sites and projects and amongst it all i finally found myself granted with some spare time, so to make the most of it i thought i’d try make a Flash-stylee-DOS, just for fun. :s:

I’ve used string buffers before to forge a typewriter effect and i changed things around in an old project to try a few new ideas out for user input and script parsing.

Basically, im lookin for ideas on any possible ways to make a text parser that runs commands when they are entered in.

say, for example:

User types “Hello”, the parser searches for the command “Hello” (in any letter case, upper or lower) and then returns text to the screen that is relavent to the command.

I’m pretty familiar with Java as well as AS and thought that it might be possible to use a switch statement with each command as a different case but i am clueless to the proper syntax in AS, although this isnt a problem as im sure theres a good tut’ somewhere on these forums. :s: :tb:

If anyone has any interesting ideas or comments, i’d love the input as im kindo at a lost end at the moment.

Thanks for reading y’all.

Z.