I’m using the Linked List classs from AS3 Data Structures For Game Developers at http://lab.polygonal.de/ds/ I’ve run in to another problem.
I can’t seem to move nodes about properly. I created an iterator
var itr:DListIterator = layerContents*.getListIterator();
the iterator points to he start of my Linked List. I want to move the first node to the end (the head to the tail). I have tried this in the code below using the insertAfter method
itr.node.insertAfter(itr.list.tail);
I can’t see any problems with it, and it returns no errror messages, but it just doesn’t work, the list remains unchanged, I must be doing something wrong.
Please help save a mans sanity.