mx.transitions.Tween
Ae galera,
O construtor da classe:
/* constructor for Tween class
obj: reference - the object which the Tween targets
prop: string - name of the property (in obj) that will be affected
begin: number - the starting value of prop
duration: number - the length of time of the motion; set to infinity if negative or omitted
useSeconds: boolean - a flag specifying whether to use seconds instead of frames
*/
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
/* omitted to save space. */
}
Tenho o seguinte:
function easyQuadrado(atual) {
arr1 = new Array("a", "b", "c", "d", "e", "f", "g", "h");
for (var w = 0; w<8; w++) {
if (arr1[w] != atual) {
new Tween(arr1[w], "_alpha", Strong.easeOut, 100, 40, .6, true);
} else {
new Tween(arr1[w], "_alpha", Strong.easeOut, 40, 100, .6, true);
}
}
}
O "new Tween" nao esta aceitando o caminho no caso "arr1[w]" que seria "a,b,c...."
Se eu colo direto "a,b ou c " funciona, mas colocando o array nao...
Alguém manja?
Abraços
Discussão (1)
Carregando comentários...