# Optimizing actionscript?

**URL:** <https://forum.kirupa.com/t/optimizing-actionscript/219416>\
**Category:** flash\
**Created:** [March 16, 2007, 11:47am UTC](https://forum.kirupa.com/t/optimizing-actionscript/219416 "2007-03-16T11:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hweiee](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@hweiee](https://forum.kirupa.com/u/hweiee)\
**Post date:** [March 16, 2007, 11:47am UTC](https://forum.kirupa.com/t/optimizing-actionscript/219416/1 "2007-03-16T11:47:50Z")

</div>

Hi, I am currently making a game. Almost done… touching up some minor issues. The thing is, about midway through the game, the game starts to lag more and more. Gameplay speed also decreases as a result. I know the reason, it is surely mainly caused by the for-loops that i use alot… like for loops inside for loops inside another for loop… etc. but I don’t know how to cut down the number of loops… seems like I need them…  
Are there any auto-actionscript-optimizer or something like that out there? Or would anybody like to look through my script and help me optimize it?  
Thanks  
hweiee
