The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsHi, here's the thing: I will have a lot of big arrays and stuff in my game, but keeping them all in a frame code would be unpractical because of how big they will be.
So I was thinking: can't I just write them into a .txt file, and then use flash to load them from there?
But when I try to import .txt into a library, it has problem reading it.
Does anyone know how can I solve this?
You can use '#include' or 'include' in AS3 to include a piece of script verbatim. Or you can just use a class file to define data in.
Hello!
I don't know which language you use but you could always try:
f.open("nameoffile.txt", "r");
list = f.read()
f.close()
At 12/18/10 08:59 AM, Mufanza wrote: Hi, here's the thing: I will have a lot of big arrays and stuff in my game, but keeping them all in a frame code would be unpractical because of how big they will be.
So I was thinking: can't I just write them into a .txt file, and then use flash to load them from there?
But when I try to import .txt into a library, it has problem reading it.
Does anyone know how can I solve this?
Check out the coolest Donkey Kong Game on NG!
http://www.newgrounds.com/portal/vi ew/459064
100 posts @ Posted at: 9/15/08 07:36 AM http://www.newgrounds.com/bbs/topic /969232
URLLoader. By doing that, you must host your text file if you want to put your flash on the web.
At 12/18/10 09:13 AM, GustTheASGuy wrote: You can use '#include' or 'include' in AS3 to include a piece of script verbatim. Or you can just use a class file to define data in.
That'll do, thanks man!