update engine for as3