AS3 Path finding engine

Experimental Pathfinding engine, use any image as walkable background, and use a black and white image to define where the user may walk. The image shows the engine in action, the red line was generated as the closest path from A to B, the user then follows that red line, his viewangle is shown as the orange cone.