Flash AS3 code to navigate based on shapes drawn on the stage