Stopping a MC's internal animation with a global Pause
Hello all,
I have recently added a pause function to a game I am working on and it almost completely works. My only problem is that movie clips continue their own animations. Does anyone know the simplest way I can get this to stop?
The code I have so far, which doesn't work properly, is below. paused is self explanatory but its also worht noting that this code is associated with the enemy movie clip that is in the library, which is then being exported to attached instances of it. The problem I have noticed is that this._currentframe is always tracing as "1" even when the clip is clearly in the middle of its animation. Any help would be much appreciated. Thank you!
code:
if (_root.paused == false) {
this.gotoAndPlay(this._currentframe);
} else {
this.gotoAndStop(this._currentframe);
}