# Display items in sequence!

**URL:** <https://forum.kirupa.com/t/display-items-in-sequence/164058>\
**Category:** flash\
**Created:** [September 28, 2005, 8:11am UTC](https://forum.kirupa.com/t/display-items-in-sequence/164058 "2005-09-28T08:11:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibenschop](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@ibenschop](https://forum.kirupa.com/u/ibenschop)\
**Post date:** [September 28, 2005, 8:11am UTC](https://forum.kirupa.com/t/display-items-in-sequence/164058/1 "2005-09-28T08:11:13Z")

</div>

Hi guys i’ve got a xml flash menu system.  
I was wondering how can load de items in a sequence starting from 1 to 5 etc… So first view button 1 then button 2 then 3 so so on. (i want it to fade in) any tips???

## this is the code

onClipEvent (load) {  
myXML = new XML ();  
myXML.ignoreWhite = true;

```
//load XML
myXML.onLoad = function (success) {
    //if we are successful, call our parse function yeah yeah baby(parseIt)
    if (success) {
        parseIt (this);
    } else {
        //if we are not succesful tell error lol
        trace ("Sorry, error loading XML files for the menu");
        getURL ("javascript: alert('Sorry, error loading XML files!')");
    }
};

function parseIt (what) {
    //Create object for eacht item
    this.noOfKids = what.firstChild.childNodes.length;
    //loop
    for (var i = 0; i &lt; noOfKids; i++) {
        _root["menuEntry" + i] = new Object ();
        _root["menuEntry" + i].buttonTitle = what.firstChild.childNodes*.attributes["buttonTitle"];
        _root["menuEntry" + i].buttonLink = what.firstChild.childNodes*.attributes["buttonLink"];
        //function build menu item
        assignBtnStuff ();
    }
}

//build menu item
myXML.load ("menu.xml");
function assignBtnStuff () {    
    for (var i = 0; i &lt; noOfKids; i++) {
        
        _root.mcMenu.attachMovie ("myBtn", "XMLbtn" + i,i);
    _root.mcMenu["XMLbtn" + i].buttonTitle_txt.text = _root["menuEntry" + i].buttonTitle;
        _root.mcMenu["XMLbtn" + i]._y = (45 * i);
        _root.mcMenu["XMLbtn" + i]._x = 40;
        
        _root.mcMenu["XMLbtn" + i].incr = i;
        _root.mcMenu["XMLbtn" + i].onRelease = function () {
            getURL (_root["menuEntry" + this.incr].buttonLink, "_blank");
        }
    
        _root.mcMenu["XMLbtn" + i].incr = i;
        _root.mcMenu["XMLbtn" + i].onRollOver = function () {
            this.gotoAndPlay(2)
        }
        
        _root.mcMenu["XMLbtn" + i].incr = i;
        _root.mcMenu["XMLbtn" + i].onRollOut = function () {
            this.gotoAndPlay(12)
        }
    
    }
}

```

## }

REPOST last post (i usede a flash component to do this but works kinda crappie).  
Thanks
