Jump to content
Search Community

jasminej

Members
  • Posts

    12
  • Joined

  • Last visited

jasminej's Achievements

0

Reputation

  1. Thank you guys. I tested the latest CS5 trial version, it works correct. Seems the current CS4 I installed is not correct version.
  2. I tried the swf you posted, same odd behavior. I dunno its my Flash CS problem or Flash Player problem.
  3. I traced it 0.5 correctly. But the swf file after compile is not always 0.5. Please check the attach avi file.
  4. I tried that too, trace 0.5 is correct. But if u open the swf file, click the test button, it animated from 1 to 0.5.
  5. Yeah, it will start to 1. Please check the attached simple file. Maybe I missed something, I'm not sure..
  6. Sorry, I didn't say it clearly. I mean if I only wanna change rotationY, but keep the other properties the same value. The tween doesn't work correctly, it starts from scaleX Y equal 1. mc.scaleX = .5, mc.scaleY = .5; mc.rotationX = -20; TweenMax.to(mc, 2, {scaleX:.5, scaleY:.5, rotationX:-20, rotationY:-90});
  7. Because the mc has already set scaleX Y rotationX with perspective before tween. I hope tween keeps the same scaleX Y rotationX perspective, but only set rotationY to flip from from mc center. I tried TweenProxy3D, its working well without set rotationX. That's why I'm thinking to use the transformMatrix.
  8. Thanks for the response. The sample code uses Matrix3D for scaleX and scaleY, but I dunno how to add rotationX rotationY and perspective. Any one can help? Thanks in advacne! TweenPlugin.activate([EndVectorPlugin]); mc.z = mc.z; //ensures that the transform.matrix3D isn't null (not sure this is an issue for you) var m3D:Matrix3D = mc.transform.matrix3D; var v3D:Vector. = m3D.rawData; var endVector:Vector. = v3D.slice(); endVector[0] = 2; //scaleX - in this case we're making it 2 endVector[5] = 3; //scaleY - in this case we're making it 3; TweenMax.to(v3D, 3, {endVector:endVector, onUpdate:apply3D}); function apply3D():void { mc.transform.matrix3D.rawData = v3D; }
  9. How to tween when target needs set scaleX, scaleY, transform.perspectiveProjection, and rotationX, rotationY at the same time? Why the below tween is not working? I only want to set the rotationY from 0 to -90, but scaleX, scaleY, rotationX should keep the same before tween and during the tween. matrix1 = mc1.transform.matrix; matrix1.a = .5; matrix1.d = .5; mc1.rotationX = -20; mc1.rotationY = 0; mc1.transform.matrix = matrix1; TweenMax.to(mc1, 2, {rotationY:-90, rotationX:-20, transformMatrix:matrix1});
  10. You are right, I have to set different DropShadowFilter for the second flip. Thank you so much!
  11. Thanks for the quick response. Please see the attachment. I guess maybe because the tween 90->0 is after the tween 0->-90, not too sure, just the second flip is not the reverse shadow as the first one.
  12. I am working on the 3D flip animation. It works well when I set rotationY from 0 to -90(shadow gets narrow and smaller). But if I use the almost the same code, just change the rotationY from 90 to 0, its not working properly, it looks like the shadow is always the same size of the original object, there is no shadow changing process from small to big. Here is the code: mc1.rotationY = 90; tp2 = new TweenProxy3D(mc1); tp2.rotationY = 90; TweenMax.to(tp2, 2, { rotationY:0, dropShadowFilter:getShadow(80, 75, 0.5)}); Anything wrong in code? Thanks!
×
×
  • Create New...