Hello everyone, I have built a big, complex framework for creating 2D games in Flash.
I have developed 2 large projects based on it and I'm experiencing a slow down as the game progresses. A while after you begin playing, things start to slow down and in 20-30 minutes the game is no more fun to play as it becomes much slower. They are both tile-based puzzle games. I'm using Flash 8 and FP8. The framework is written in AS2 and it uses a callback system for communication between classes (e.g. tileManager.onEvent = Delegate.create(this, ....)) The use of Delegates is very common throughout the framework. I'm using the Delegate version that supports parameters too, so I often pass complete instances of complex objects as parameters. I have tried to use .destroy() on everything I can, so that objects get deleted from memory. Do you think the framework could benefit from an eventListener-system approach instead of callbacks? Will I be able to make the slow-down dissapear or decrease? Any thoughts would be very welcome. Thanks! _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

