[Tweener] concatinating objects question
Ryan Brewer
Ryan.Brewer at MyCart.net
Thu Jul 9 11:08:56 PDT 2009
Excellent! Hey thanks Charlie & Zeh, that base was just what I was
looking for.
I know she's on her death bed, but I LOVE tweener!
On Jul 9, 2009, at 1:00 PM, Zeh Fernando wrote:
> It's either what Charlie said (which changes the object), or this
> (which doesn't):
>
> var fallAndFade:Object = {scaleX: 0, scaleY: 0, alpha: 0, time: 2};
> Tweener.addTween(myMC, {base:fallAndFade, delay: 2});
>
> That is, you need to use the "base:" parameter.
>
>
> Zeh
>
>
> On Thu, Jul 9, 2009 at 1:51 PM, charlie Montagut <charlie.montagut at gmail.com
> > wrote:
> Hello
>
> I think you can concatinate the object before:
>
> var fallAndFade:Object = {scaleX: 0, scaleY: 0, alpha: 0, time: 2};
>
>
> ...
>
> fallAndFade.delay = 2
> Tweener.addTween(myMC, fallAndFade);
>
> and if the delay has to be temporary, maybe more like this way,
>
> ...
>
>
> var tempObect : Object = fallAndFade
> tempObect . delay = 2
> Tweener.addTween(myMC, tempObect );
>
> It keeps your fallAndFade as its default state
>
>
> Charlie
>
>
>
>
>
>
>
> On Thu, Jul 9, 2009 at 6:56 PM, Ryan Brewer <Ryan.Brewer at mycart.net>
> wrote:
> Hi guys,
>
> I'm trying to do something like this:
>
>
>
> var fallAndFade:Object = {scaleX: 0, scaleY: 0, alpha: 0, time: 2};
>
> Tweener.addTween(myMC, {delay: 2, fallAndFade});
>
>
>
>
>
> It doesn't work, can anyone tell me if I can do this sort of merging
> with the addTween parameters object?
>
> I have a bunch of objects I'll be Tweening back-to-back, and would
> like to have the ability to reuse part of the tween settings
>
>
> Thanks in advance,
> Ryan
>
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
>
> --
> ______________________________________
>
> Charlie Montagut
> Développeur Artistique junior
> web:http://www.charlie-montagut.com
> http://www.crokus.fr
>
>
> ______________________________________
>
> _______________________________________________
> 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/20090709/cfbb7e59/attachment-0001.htm>
More information about the Tweener
mailing list