An automatic object pool for AS3