[Tweener] another day, another Tweener question
Zeh Fernando
zehfernando at zeh.com.br
Wed Mar 26 20:29:33 PDT 2008
Well, _transform would not act on colorTransform, but rather on
filters... so it'd 'stack', having both applied.
_brightness 0.5 should surely work, as long as you're using the latest
version (1.31.71) and has ColorShortcuts init()ed.
Is it showing up totally black or just blackish?
Zeh
Chris Lamothe wrote:
> a little something like so:
>
> mcFlippingPage = new Square();
> mcFlippingPage.transform.colorTransform =
> FLIPPING_PAGE_COLOR_TRANSFORM; // This is library pull and initial
> colorization.
>
> Tweener.addTween( mcFlippingPage, { width : LEFT_IMAGE_WIDTH,
> _brightness : 0.5, time : FLIP_DURATION, transition : FLIP_TRANSITION,
> onComplete : openNextImageRight } );
>
> as I'm writing this I'm seeing that it's probably my
> FLIPPING_PAGE_COLOR_TRANSFORM object that needs to start at the orange/
> black combo and then the tween can take it to pure orange?
>
> On Mar 26, 2008, at 11:03 PM, Zeh Fernando wrote:
>
> What code did you use to do the _brightness transition?
>
>
> Zeh
>
> Chris Lamothe wrote:
>> ok, gotta be more specific as I'm not quite sure what combination of
>> these attributes to use in order to achieve this affect.
>>
>> I've got a movieclip that I pull from the library at runtime, color it
>> orange with a colorTransform object, then I set Tweener loose on it to
>> do the resizing bit.
>>
>> I've tried just adding _brightness to that addTween call, but it goes
>> immediately to black, vs. a gradual transition.
>>
>> help a brother out?
>>
>> On Mar 26, 2008, at 10:19 PM, Zeh Fernando wrote:
>>
>> Well yes, just use ColorShortcuts and animate with _brightness and
>> such.
>>
>> Zeh
>>
>> Chris Lamothe wrote:
>>> hey kids,
>>>
>>> back for more...
>>>
>>> I'd like to use Tweener to transform an orange colored sprite to an
>>> orange/black color. see attachments for example (will attachments
>>> make
>>> it across this list?). basically, I'm simulating a page turn, and as
>>> the
>>> page turns, I need to simulate the effect of light and shadow.
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> 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
>>
> _______________________________________________
> 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
>
More information about the Tweener
mailing list