I have a movie clip on the root stage.
It’s instance name is “introMC”.
Inside the “introMC”, I have another MovieClip that I am resizing with Actionscript:
onClipEvent (load) {
XScaleDest = 2000;
YScaleDest = 700;
}
onClipEvent (enterFrame) {
if (this._xscale != XScaleDest) {
this._xscale += (XScaleDest-this._xscale)*.1;
}
if (this._yscale != YScaleDest) {
this._yscale += (YScaleDest-this._yscale)*.1;
}
if (this._xscale >= (XScaleDest-10)) {
this._xscale = XScaleDest;
this._yscale = YScaleDest;
//_root.introMC.gotoAndStop("doneFrame");
}
}
As you can see by the commented line (//…), when the MC is done resizing, I want the “introMC” MovieClip to gotoAndPlay the frame called “doneFrame”…
But the
_root.introMC.gotoAndStop("doneFrame");
command doesn’t work. It just keeps re-doing the resize animation.
I know I’m forgetting something. Can anyone help me out here?
Thanks!!