Hi all,
I am trying to unload a movie clip that is on a layer in a movie clip. After clicking on a button, I would like the movie to go back to the previous menu without playing a couple of movie clips that’s in the main movie clip.
So at the end of my movie clip I have:
_parent.gotoAndPlay(“resources”); // resources is the frame name in the main movie clip where I would like the movie to restart from
_parent.vhost_mc.unloadMovie(“vhost_mc”); //vhost_mc is a movie clip in the main movie clip that I want to unload
_parent.videoScreen_mc.unloadMovie();
But the videoScreen_mc doesn’t unload. The main movie clip starts with the videoScreen and I’ve actually deleted the frames of videoScreen_mc where the “resources” frame starts, but still it appears.
I’ve even tried _parent.videoScreen_mc._visible = false; but nothing works! I’ve tried createEmptyMovieClip, but since the videoScreen_mc is on the main timeline, I don’t think it works. I’ve even tried putting this function on the “resources” frame:
onEnterFrame = function() {
play();
vhost_mc.unloadMovie(“vhost_mc”);
vhost_mc.removeMovieClip();
this.videoScreen_mc.unloadMovie();
this.videoScreen_mc.removeMovieClip();
this.mask._visible = false;
}
But when I do this, the play button loops starting at the “resources” frame.
Essentially I would like the main movie clip to play without certain movie clips that’s included within the main movie clip.
I hope I’m making sense. Please help, I’ve been at this for days!