0
votes

I have so far been doing everything in one big big as3 file, but now I seem to be having problems with the memory pretty quickly, even if I am removing all the listeners and clearing all the containers all the time... would separating code in different as3 files help me prevent my flash slowing down?

Might be dumb question, but I dont want to start all the work of re-arranging the code, though at this point it is not too big of a work. Except maybe I have to figure out few things and re-do them since it probably wont work when they are in different files, but...

anyways, thanks in advance!

1

1 Answers

2
votes

The increase of memory has nothing to do with working with a single file, so splitting in different files/classes would not solve the problem without a refactoring of your code.

If, as you say, at this point the work it's not too big, I think you should seriously consider to refactor your code with a proper OOP structure. Will help you to debug your app, to help you finishing it and to maintain it in the future