swatch1.onEnterFrame = function () {
this._rotation += (-3 - this._rotation)/speed;
if (this._rotation<=-3) {delete this.onEnterFrame;}
}
swatch2.onEnterFrame = function () {
this._rotation += (-6 - this._rotation)/speed;
if (this._rotation<=-6) {delete this.onEnterFrame;}
}
swatch3.onEnterFrame = function () {
this._rotation += (-9 - this._rotation)/speed;
if (this._rotation<=-9) {delete this.onEnterFrame;}
}
swatch4.onEnterFrame = function () {
this._rotation += (-12 - this._rotation)/speed;
if (this._rotation<=-12) {delete this.onEnterFrame;}
}
Sorry for this noob Q, but is it possible to condense this Actionscript? Is it possible to use a loop or something?
Thanks for the Help!!!