# Another Linked List Question

**URL:** <https://forum.kirupa.com/t/another-linked-list-question/238484>\
**Category:** Uncategorized\
**Created:** [September 11, 2007, 7:58pm UTC](https://forum.kirupa.com/t/another-linked-list-question/238484 "2007-09-11T19:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocarson](https://avatars.discourse-cdn.com/v4/letter/o/e9bcb4/32.png) [@ocarson](https://forum.kirupa.com/u/ocarson)\
**Post date:** [September 11, 2007, 7:58pm UTC](https://forum.kirupa.com/t/another-linked-list-question/238484/1 "2007-09-11T19:58:06Z")

</div>

I’m using the Linked List classs from AS3 Data Structures For Game Developers at [http://lab.polygonal.de/ds/](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

```auto

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

```auto

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.
