gonda
10-09-2003, 06:03 AM
Okeej,
I have a problem. I have my main stage. On my main stage I have 4 MC's as buttons. In those MC's I say :
this.onRollOver = function () {
gotoAndPlay("over");
}
this.onRollOut = function () {
gotoAndPlay("out");
}
this.onRelease = function () {
createEmptyMovieClip("externalMovie",20);
externalMovie.loadMovie("balk.swf");
this.gotoAndPlay("press");
this.enabled = false;
if(prevClip != this) {
prevClip.enabled = true;
prevClip.prevFrame();
prevClip.gotoAndPlay("back");
_global.prevClip = this;
}
//externalMovie._x = 100;
//externalMovie._y = 400;
}
stop();
Now I want the "externalMovie" I create when I click the button to disappear when I click another button (MC). I tried
externalMovie.removeMovieClip();
in the onRelease function but that won't work.
Can somebody help me?
I use :
createEmptyMovieClip("externalMovie",20);
externalMovie.loadMovie("balk.swf");
in every MC, only the loaded swf changes. I already tried using different MCnames for externalMovie or changing the depth but that won't change anything...
I have a problem. I have my main stage. On my main stage I have 4 MC's as buttons. In those MC's I say :
this.onRollOver = function () {
gotoAndPlay("over");
}
this.onRollOut = function () {
gotoAndPlay("out");
}
this.onRelease = function () {
createEmptyMovieClip("externalMovie",20);
externalMovie.loadMovie("balk.swf");
this.gotoAndPlay("press");
this.enabled = false;
if(prevClip != this) {
prevClip.enabled = true;
prevClip.prevFrame();
prevClip.gotoAndPlay("back");
_global.prevClip = this;
}
//externalMovie._x = 100;
//externalMovie._y = 400;
}
stop();
Now I want the "externalMovie" I create when I click the button to disappear when I click another button (MC). I tried
externalMovie.removeMovieClip();
in the onRelease function but that won't work.
Can somebody help me?
I use :
createEmptyMovieClip("externalMovie",20);
externalMovie.loadMovie("balk.swf");
in every MC, only the loaded swf changes. I already tried using different MCnames for externalMovie or changing the depth but that won't change anything...