
Код:
this.onEnterFrame = function () {
trace (this._currentframe);
this.gotoAndStop (this._currentframe + this.df);
if (this._currentframe == 1) {
this.df = 1;
} else if (this._currentframe == this._totalframes) {
this.df = -1;
}
};
if (!this.df) {
this.df = 0;
this.stop ();
}