Load random movieClips from the library

Hello,

I need to load random movieClips from the library to a middleStage container on my stage.
I already have this.


for (i=1; i<7; i++) {
 this["btn"+i].iD = i;
 this["btn"+i].onRelease = function() {
    _root.currentItem1.swapDepths(300);
      _root.currentItem1.removeMovieClip();
      _root.currentItem1 = _root.middleStage.attachMovie("Animation"+this.iD, "Animation"+this.iD, 1);
 };
}

I just need to add to that random loading to the middleStage this will only work when the user is not interacting with buttons = btn’s.

please some advice.

thanks. I:-)