I’m now working on multiple config files(about 16 .txt form files) in a actionscript 3.0 project. I think it is not good to load so many files. maybe I should package them into a swf(But I do not know how to do this) or do sth else.
I want to know what should I do with these files.
Thx so much.
If you’re thinking that the number of files is too many for the application to handle, you’re thinking about the problem the wrong way. The memory overhead will be higher with the SWF due to the headers, it’ll also effect run-time performance as the Flash runtime has to parse SWF whereas it’s easier for it to call on .txt files.
If you’re thinking that your bin dist looks ridiculous with .txt files, and your exporter doesn’t bundle them, try this resource : http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html (the relevant section is at the bottom of the page under “Embedding all other file types”
tl;dr
I suggest you pass this if-else block.