elsassph / eaze-tween

Automatically exported from http://code.google.com/p/eaze-tween - see also active fork in development: https://github.com/mayakwd/as3-eaze-tween
1 stars 0 forks source link

[feature request] few additions #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. src().dst().dir()
I have lots of code like this:
eaze(panel).apply( { y:480, alpha:0 } ).to(0.5, { y:424, alpha:1 } );
eaze(panel).apply( { y:424, alpha:1 } ).to(0.5, { y:480, alpha:0 } );
Same values for same target. Just "show" and "hide" sprite.

It would be nice to be able to specify a values/constants only once and change 
only the direction of tween.

2. Only one onComplete event:
eaze(startBtn).apply( { y:480, alpha:0 } ).to(0.5, { y:480 - 42 - 107, alpha:1 
} );
eaze(credsBtn).apply( { y:480, alpha:0 } ).to(0.5, { y:480 - 42 - 61, alpha:1 } 
);
eaze(this).delay(0.6).onComplete(onETween, 30);

May be possible to group or tag several tweens, so they send only one 
onComplete event when they all finished?

Original issue reported on code.google.com by Ed.Ryz...@gmail.com on 3 Feb 2012 at 3:59

GoogleCodeExporter commented 9 years ago
I'm save tweens params to dictionaries for same tasks.

like this:

start->end
eaze(panel).apply( startObj ).to(0.5, endObj );

end->start
eaze(panel).apply( endObj ).to(0.5, startObj );

Original comment by A.bur...@gmail.com on 15 Jan 2013 at 4:37