Really need help

Hi all,

Okay I just make a simple comboBox one…which is using only mc…don’t ask me why I’m not using th flash component for it…Okay everything is works perfectly…the user will click the button arrow in order to attach the item list mc…and then the user make selection for desire value…and the click btn again will remove the attach mc…my big problem is rite now…is how to attach back the mc if the user plan to select another value…(likes combobox component process…)…hope some one will help me out with this…thanks in advanced…

here’s the code (just a quick example mockup)…



stop();


var itemArr:Array = ["items1","items2","items3","items4"];

this.createEmptyMovieClip("holder",this.getNextHighestDepth());

cb.displayList.text = "Select...";


btn.onPress = function(){
    for(var i=0;i<itemArr.length;i++){
        var item = holder.attachMovie("mc","mc"+i,holder.getNextHighestDepth());
        trace(item);
        item.ivar = i;
        item._x = cb._x;
        item._y = cb._y+cb._height+(item._height*i);
        item.itemList.text = itemArr*;
        item.onPress = clickItems;
    }//end for
}


function clickItems(){
    cb.displayList.text = itemArr[this.ivar];
    removeMovieClip(holder);-->remove mc after selection has being made
}



and here’s the fla…