Platform Engine in Actionscript 3