在Tweener中,出现了"easeOutExpo“类型的转换。在Flex宽松类中,什么是等价的--这里列出了1?
More Context:
下面是Tweener代码:
Tweener.addTween(container, {width:w, height:h, time:0.25, transition:"easeOutExpo"});下面是我希望具有easeOutExpo转换类型的实例:
<s:Scale
scaleYFrom=".5"
scaleYTo="1"
scaleXFrom=".5"
scaleXTo="1"
duration="250"
autoCenterTransform="true"
applyChangesPostLayout="true"
/>1
发布于 2012-10-29 21:36:48
这将是Power的宽松政策,easeInFraction被设定为0。如果您想要匹配Tweener使用的算法,您需要通过一些尝试和错误计算出合适的指数。
<fx:Declarations>
<s:Power
id='expoEaseOutEquivalent'
easeInFraction='0'
exponent='8' />
<s:Scale
easer='{expoEaseOutEquivalent}'
scaleYFrom='.5'
scaleYTo='1'
scaleXFrom='.5'
scaleXTo='1'
duration='250'
autoCenterTransform='true'
applyChangesPostLayout='true' />
</fx:Declarations>https://stackoverflow.com/questions/13127333
复制相似问题