Looking at that, I would just chop the screen into a grid and then mark a grid segment as either traversible or not. Then you can easily use something like A* or Breadth-First to solve it. There are implementations of both readily available in Flash.