# Showing elements from a XML list 5 by 5?

**URL:** <https://forum.kirupa.com/t/showing-elements-from-a-xml-list-5-by-5/323552>\
**Category:** flash\
**Created:** [July 6, 2011, 3:43pm UTC](https://forum.kirupa.com/t/showing-elements-from-a-xml-list-5-by-5/323552 "2011-07-06T15:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenDoliveira](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rubendoliveira/32/3905_2.png) [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Post date:** [July 6, 2011, 3:43pm UTC](https://forum.kirupa.com/t/showing-elements-from-a-xml-list-5-by-5/323552/1 "2011-07-06T15:43:22Z")

</div>

Hi everyone,

I have a for loop which is grabbing data from a xml file and showing it to the user… my problem is that I want to show 5 for let’s say… 30 seconds… and then making a transition and show another 5 elements.

I can make the condition like:

```auto

if(info.length() >= 5){
    for (var i:int = 0; i < 5; i++)
    {

```

and I show the first 5. But what now? How do I hide those and show the next five?

Any ideas?

Thanks in advance.
