Answered
removeMovieClip
What I can't find a way to do is to remove a movie clip once
a new frame is selected.
Example AS:
// ----- Popup Dialog -----\\
this.createEmptyMovieClip("container_mc", 1);
this.midway_mc.onRelease = function() {
var t:MovieClip = container_mc.attachMovie("popup1", "popup1_mc", container_mc.level1);
t._x = 410;
t._y = 318;
t.closer.onRelease = function() {
t.removeMovieClip();
};
The above works to remove from the current frame if the user selects the closer button, but when you change frames to a new frame the movie clip remains. I tried the a/s below but it does not work. Any Ideas???
if (frame =! "_gameroom"){
t.removeMovieClip();
}
else{
stick("_gameroom");
};
Example AS:
// ----- Popup Dialog -----\\
this.createEmptyMovieClip("container_mc", 1);
this.midway_mc.onRelease = function() {
var t:MovieClip = container_mc.attachMovie("popup1", "popup1_mc", container_mc.level1);
t._x = 410;
t._y = 318;
t.closer.onRelease = function() {
t.removeMovieClip();
};
The above works to remove from the current frame if the user selects the closer button, but when you change frames to a new frame the movie clip remains. I tried the a/s below but it does not work. Any Ideas???
if (frame =! "_gameroom"){
t.removeMovieClip();
}
else{
stick("_gameroom");
};