Tilemap.as edit

Change based upon zachwlewis' advice.