I have a movie that I want to load and then after the user interacts with it I want this movie to unload and swap out a replacement movie in the same level (level_1) and also load another movie in level_10. The problem I'm having is that parts of this movie remain in level one even after it has been replaced by a new movie in the same level (level_1). Does anyone have any thoughts on how to totally swap out this movie so parts of it don't remain? Below is the code. _root.V is the hittest that will cause the loadmovie action.
Box 1 is the name of the new swf to swap out this movie.
onClipEvent (enterFrame) {
if (this.hitTest(_root.a)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.b)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.finish)) {
loadMovieNum("quiz3True.swf", 30);
_root.gotoAndStop("finish"
;
}
if (this.hitTest(_root.bb)) {
loadMovieNum("Box 1.swf", 1);
}
if (this.hitTest(_root.cc)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.c)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.d)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.e)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.f)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.g)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.h)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.i)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.ii)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.j)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.k)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.l)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.m)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.n)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.o)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.p)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.q)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.r)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.s)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.t)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.u)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.v)) {
loadMovieNum("Box 1.swf", 1);
loadMovieNum("quiz3True.swf", 10);
}
if (this.hitTest(_root.w)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.x)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.y)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.z)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.ii)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.aa)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.bb)) {
_root.gotoAndStop("done"
;
}
if (this.hitTest(_root.dd)) {
_root.gotoAndStop("done"
;
}
}
onClipEvent (load) {
moveSpeed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x -= moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
}
}
Box 1 is the name of the new swf to swap out this movie.
onClipEvent (enterFrame) {
if (this.hitTest(_root.a)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.b)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.finish)) {
loadMovieNum("quiz3True.swf", 30);
_root.gotoAndStop("finish"
}
if (this.hitTest(_root.bb)) {
loadMovieNum("Box 1.swf", 1);
}
if (this.hitTest(_root.cc)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.c)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.d)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.e)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.f)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.g)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.h)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.i)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.ii)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.j)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.k)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.l)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.m)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.n)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.o)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.p)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.q)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.r)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.s)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.t)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.u)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.v)) {
loadMovieNum("Box 1.swf", 1);
loadMovieNum("quiz3True.swf", 10);
}
if (this.hitTest(_root.w)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.x)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.y)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.z)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.ii)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.aa)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.bb)) {
_root.gotoAndStop("done"
}
if (this.hitTest(_root.dd)) {
_root.gotoAndStop("done"
}
}
onClipEvent (load) {
moveSpeed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x -= moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
}
}