The AstarPath was supposed to be iterated through like this:
while(myPath.hasNext()) { trace(myPath.getNext()); }
But since a lot of people don’t like doing it this way, I’ve added a simple toArray() method to the AstarPath class. The method does what it says: It returns the inner array that the AstarPath uses.