[Tweener] special properties in new Tweener (AS3)
Jason Van Pelt
VanPeltJ at peteramayer.com
Fri Mar 28 08:48:39 PDT 2008
I thought that time had a default value greater than 0 (I thought it was
1...)?
Jason Van Pelt
Interactive Developer
504.210.1232 (p) / 504.581.2731 (f)
Peter A. Mayer Advertising, Inc.
www.peteramayer.com
Hm, for an immediate change? You can set them with a tween with time 0.
It immediately sets the value without "tweening" it.
Tweener.addTween(myobj, {_brightness:1});
Tweener.addTween(myobj, {_brightness:2, time:1});
This does a tween of _brightness from 1 to 2.
Zeh
Kaspar V wrote:
> Thanks!
>
> Is there a way to use special properties without tweener, for example
> set _brightness something other than 0 and then tween it?
>
>
> 2008/3/24, Zeh Fernando <zehfernando at zeh.com.br>:
>>
>> Kaspar V wrote:
>> > I upgraded Tweener from version 1.26 to 1.31.
>> > I had
>> >
>> > Tweener.addTween(this, {_color:0xFFFFFF, time:.2,
transition:"linear"})
>> >
>> > and now it generates error
>> >
>> > ReferenceError: Error #1069: Property _color not found on Menuitem
and
>> > there is no default value.
>> > at caurina.transitions::Tweener$/addTween()
>> > at Menuitem/mouseover()
>> >
>> > Do I have to initialize special properties somehow?
>> > Just importing (import caurina.transitions.properties.*) doesn't
>> > change anyting...
>>
>>
>> Yes:
>>
>> ColorShortcuts.init();
>>
>> That's needed only once on your entire application.
>>
>> Those special properties ("_color", et al) were moved to their own
>> classes. They're optional so they need initialization.
>>
>>
>> Zeh
>> _______________________________________________
>> Tweener mailing list
>> Tweener at lists.caurinauebi.com
>> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
_______________________________________________
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/20080328/c733922f/attachment.html
More information about the Tweener
mailing list