Hello, Does anybody know a solution for the someMovieClip.isPlaying() Solution in Actionscript 2.0 to use with MTASC? I can't get the AS1 solution to work:
MovieClip.prototype.isPlaying = function(){ if (this._previousframe == undefined) this._previousframe = this._currentframe; if (this._previousframe == this._currentframe) var playing = false; else var playing = true; this._previousframe = this._currentframe; return playing; }; MovieClip.prototype.showPlayingClips = function(){ for( clip in this ){ if( typeof this[clip] == "movieclip" ) { this[clip].counter = 1; this[clip].onEnterFrame = function () { trace(this.isPlaying() + " " + this); if (this.counter > 1) { delete this.onEnterFrame; } this.counter++; } } } } Thanks, Matthias _root.showPlayingClips(); _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com