A marching squares implementation with Actionscript 3