PDA

View Full Version : console window [as2]



tapioca
January 25th, 2009, 02:52 PM
hey, i wrote a console window. idk if anyone would find it useful but it's really easy to include in a flash, and it has a parser that you can write your own debug commands/cheats/whatever for.

here's a demo of it: http://www.kthxplz.info/clinic_chan/

to include it in a flash you just put the .as files in the same directory as your project and write:



#include "clinic_window.as"
clinic_init(depth);
clinic_show();


(pressing '~' shows/hides the window in the demo, you can write whatever event you want or just copy mine when you put it in your own flash)

uhm, yeah, i mostly just made it for myself but i thought someone might find it useful. :P

tell me if you use it, and if you make any cool changes. sorry it's as2. i'll probably make it as3 when i finish this project and start using as3.

NJB
January 26th, 2009, 03:16 PM
this is really, neat, I'm currently trying (and failing! I should add) to make something similar for a flash game in AS3. I'd definitely like a mosy at the source.
(if I can use any of it, full credit given, no fear!)

tapioca
January 26th, 2009, 07:48 PM
this is really, neat, I'm currently trying (and failing! I should add) to make something similar for a flash game in AS3. I'd definitely like a mosy at the source.
(if I can use any of it, full credit given, no fear!)

haha, awesome. source can be downloaded at http://www.kthxplz.info/clinic_chan/clinic_chan.zip and i don't know as3 yet but if you need any parts of it commented, you can totally email me at kaypav@gmail.com.

NJB
January 27th, 2009, 02:15 PM
cheers, I might send you what I've got so far, I've got a "terminal" hacked together, which essentially is class which holds a string and it then adds a new line through an "addEntry(string)" function which is called by other classes. Not exactly streamlined, but it functions for what I need it to.
I still have to look at your code actually. I'll do so tonight if I can stay awake long enough. *yawns from exhaustion*