Function stuff

[font=Comic Sans MS][size=4][color=#680aac]I’m working on a game, and I need a bit of advice on functions, as well as something else. It’s going to be, basically, a text adventure game, in flash. I need help with calling functions, like if you typed “look there”, it would call the function “look” with the parameter “there”. Is there a way to do this? I also need to be able to show the things you typed previously, like in a dos prompt. such as:


 +----------------------------+
 | look there		     |
 | you see a bunch of stuff   |
 |			     |
 | :			     |
 +----------------------------+
 

with the “:” being where you type the next thing. Also, does anyone know how to show that little “:” before each thing you type?

I would like to work on this soon, so if anyone has a chance, please post.[/color][/size][/font]