3 Replies Latest reply on May 12, 2011 8:01 AM by saisri2k2

    Replacing items in the display list

    SiHoop Level 1

      I have a series of objects in a display, half of which have to be updated regularly. The items are originally added to the display list in pairs and are of 2 different types. My display list look like this:

      object1

      object2

      object1

      object2

      object1

      object2

      To update the display list, I delete half of the objects, so my list now looks like this:

      object1

      object1

      object1

      I now want to add the updated objects to the list, but doing so makes the list look like this so the objects no longer alternate:

      object1

      object1

      object1

      object2

      object2

      object2

      Is there a better way to think about deleting and adding objects to the display list so I can maintain my alternating list?

      Thank you!