Hello everyone,
I’m having difficulties removing a movie clip that i attached early on my first frame. I would like to remove it later on my fifth frame.
here is my code on my first frame
for (i=1; i<18; i++) {
this["play"+i].iD = i;
this["play"+i].onRelease = function() {
_root.currentItem1.swapDepths(300);
_root.currentItem1.removeMovieClip();
_root.currentItem1 = _root.middleStage.attachMovie("audio"+this.iD, "audio"+this.iD, 1);
};
this["play"+i].onRollOver = function () {
this.gotoAndPlay(2);
};
this["play"+i].onRollOut = function () {
this.gotoAndPlay(1);
};
}
here is my code on the fifth frame but the movieclip doesn’t go away
please advice.
onEnterFrame = function () {
trace (_root.currentItem1);
_root.currentItem1.swapDepths(300);
_root.currentItem1.removeMovieClip();
}