road0001 / tweensy

Automatically exported from code.google.com/p/tweensy
1 stars 0 forks source link

width after completion not correct #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

var easing=Sine.easeOut;
var time:Number=10;
trace(mc.y,mc.rotation,mc.width);
TweensyZero.from(mc, {width:100,rotation:35,y:-200}, time, easing);
TweensyZero.onComplete=allComplete;
function allComplete() {
    trace(mc.y,mc.rotation,mc.width);
}

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

trace 1= 162 0 325
trace 2= 162 0 371.75

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

0.2.2 windows 7

Please provide any additional information below.

Original issue reported on code.google.com by awar...@gmail.com on 25 Dec 2009 at 11:39

Attachments:

GoogleCodeExporter commented 8 years ago
it works ok only if i put one propertie

Original comment by awar...@gmail.com on 25 Dec 2009 at 11:41

GoogleCodeExporter commented 8 years ago
Probably your rotation causes to change the object's width. And the tween does 
not
check if it's the same after completion, just breaks the process into 
time-chunks and
calls update every tick.

Try to do the same thing with a perfect circle.

Original comment by gmentat@gmail.com on 5 May 2010 at 2:13