[Tweener] concatinating objects question
charlie Montagut
charlie.montagut at gmail.com
Thu Jul 9 10:51:00 PDT 2009
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
______________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090709/8b0a5bd4/attachment.htm>
More information about the Tweener
mailing list