road0001 / tweener

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

AddTween to MovieClip nullifies property transform.matrix3D. #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Q. What is the expected outcome? What happens instead?
That the transform.matrix3d property of the tweened object doeasn't change. 
Instead, it loses reference to the original Matrix3D object, becoming null.

Q. What code will reproduce the problem?

(create a MovieClip called myMC on stage and rotate it's x axis with the 
"3d rotation tool")

var thumbLarge:Number = 1.5;
var thumbSmall:Number = 1.0;

myMC.myx = myMC.x;
myMC.myy = myMC.y;
myMC.myScaleX = myMC.scaleX;
myMC.myScaleY = myMC.ScaleY;
myMC.myheight = myMC.height;

Tweener.addTween(myMC, { scaleX:myMC.myScaleX*thumbLarge, 
scaleY:myMC.myScaleY*thumbLarge, rotationX:myMC.rotationX, x:myMC.myx - 
myMC.width * Math.abs(thumbSmall - thumbLarge)/2, y: -myMC.myheight * 
Math.abs(thumbSmall - thumbLarge)/2), time:1 } );   

Q. What version of the class are you using, and under which development 
environment (IDE version, compiler, etc)?
I downloaded class from the file: tweener_1_33_74_as3.zip.
I'm using flash CS4 version 1.0; Actionscript 3.0; flash player 10.0

Original issue reported on code.google.com by rafael.s...@gmail.com on 12 Sep 2009 at 8:51

GoogleCodeExporter commented 8 years ago
Please forgive me. I got ahead of myself opening this issue. There is no such 
issue. I 
overlooked something. Please remove this issue from list.

Original comment by rafael.s...@gmail.com on 12 Sep 2009 at 9:02

GoogleCodeExporter commented 8 years ago
try this 
don't use recursive variables like rotationX:myMC.rotationX
when updates, it will refer to this variable and won't move
I think so it's your problem

this sequence works for me :

var rotationValue:Number = 180;
Tweener.addTween(currentPlane, {z:-60, _brightness:-60, 
rotationY:rotationValue, 
time:1, transition:"easeOutBack"});

Original comment by osec...@gmail.com on 16 Sep 2009 at 2:50