Devo far cambiare colore ad un mc e portarlo da grigio a blu (#c00279a) e ho provato con le matrici ma non funziona o meglio cambio il colore ma non riesco ad ottenere quello che vorrei...perchè? il codice è qui sotto...
import flash.filters.*;
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
var matrix:Array = [
1, 0, 0, 0, 0,
0, 1, 0, 0, 0,
0, 0, 1, 0, 0,
0, 0, 0, 1, 0];
mc.filters = [new ColorMatrixFilter(matrix)]
var tw:Tween = new Tween(matrix, "12", Regular.easeIn, 1, 255, 10, true);
tw.addListener(this);
function onMotionChanged(tw:Tween)
{
mc.filters = [new ColorMatrixFilter(matrix)]
}
ho anche provato a passare un paio di parametri alla funzione tipo
function onMotionChanged(tw:Tween)
{
matrix[12] = matrix[18]
mc.filters = [new ColorMatrixFilter(matrix)]
}
ma non cambia nulla anzi non funziona più!

Rispondi quotando
???
