[Tweener] tweening alpha

Cedric Muller flashcoder at benga.li
Tue Jan 13 08:03:22 PST 2009


var _img = ["foto"+i];
Tweener.addTween(_img, {alpha:1, .....});
should work

Tweener.addTween(["foto"+i], {alpha:1, ...});
should also work


hth,
Cedric

> You can't use the String in your code like you show, Tweener likes  
> movieClips, text, sprites... objects like that.
>
> Try doing something like this...
>
> var _img = "foto"+[i];
> Tweener.addTween(_img,{alpha:1,time:2, delay: 2, transition:  
> "easeInOutSine", onComplete:Prueba});
>
> -Gerry
>
> On Jan 13, 2009, at 10:47 AM, Iker Lopez de Audikana wrote:
>
>> I have this code:
>>
>> Tweener.addTween("foto"+[i],{alpha:1, transition: "easeInOutSine",  
>> time:2, delay: 2, onComplete:Prueba}
>>
>> and I get this error:
>>
>> ReferenceError: Error #1069: Could not find alpha property in  
>> String and there is not a default value.
>>
>> Sorry for the translation, my flash CS4 is in Spanish.
>>
>> thank you.



More information about the Tweener mailing list