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

delay forces tween to ignore easing function #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

sp = new Sprite();
sp.addChild(new Bitmap(new Cake()));
eaze(sp)
.delay(0.5)
.easing (Bounce.easeOut)
.from(1).rect(new Rectangle(0, 0, 0, h)).updateNow();

> What is the expected output? What do you see instead?

have delay and for rest the easing Bounce.easeOut used. THe workaround is to 
set easing after "from" or "to" like so:

eaze(sp)

.delay(0.5)
.from(1)
.easing (Bounce.easeOut)
.rect(new Rectangle(0, 0, 0, h)).updateNow()

I think delay should not modify the easing function set

> What version of the product are you using? On what operating system?

rc2-r84, Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by lukasz.g...@gmail.com on 13 Aug 2013 at 12:52

GoogleCodeExporter commented 9 years ago
The "workaround" is actually the right syntax.
'.delay' IS a (empty) tween, as is '.to' and '.from', it's not a tween property.

I agree it's a bit confusing, but tweens themselves always start immediately.

Original comment by philippe...@gmail.com on 13 Aug 2013 at 2:14