Classpublic class RoundPropsPlugin
InheritanceRoundPropsPlugin Inheritance TweenPlugin

If you'd like the inbetween values in a tween to always get rounded to the nearest integer, use the roundProps special property. Just pass in an Array containing the property names that you'd like rounded. For example, if you're tweening the x, y, and alpha properties of mc and you want to round the x and y values (not alpha) every time the tween is rendered, you'd do:, 2, {x:300, y:200, alpha:0.5, roundProps:["x","y"]});

IMPORTANT: roundProps requires TweenMax! TweenLite tweens will not round properties.


import com.greensock.TweenMax;, 2, {x:300, y:200, alpha:0.5, roundProps:["x","y"]});

Copyright 2010, GreenSock. All rights reserved. This work is subject to the terms in or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.

Public Properties
 PropertyDefined by
 InheritedchangeFactor : Number
Public Constants
 ConstantDefined by
 InheritedVERSION : Number = 1.32