[Tweener] tweening alpha
Gerry Creighton
gerry at thespikeranch.com
Tue Jan 13 07:53:45 PST 2009
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.
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090113/f9978fc0/attachment.htm>
More information about the Tweener
mailing list