I want to make an AS based motion tween with colors. What’s the easiest way to do that? I Have already this code:
[AS]MovieClip.prototype.nL = function(nY, sN) {
this.onEnterFrame = function() {
// nY
this.dY = nY - this._y;
this.mY = this.dY/sN;
this._y += this.mY;
}
}[/AS]
Something like this would be perfect:
[AS]MovieClip.prototype.nL = function(nY, nC, sN) {
this.onEnterFrame = function() {
// nY
this.dY = nY - this._y;
this.mY = this.dY/sN;
this._y += this.mY;
// nC
// and here the code
}
}
blahblah.onRollOver = function() {
this.nL(20,0xFFCC00,5);
}[/AS]