greensock_plugins常用功能中文简介
作者:admin 日期:2013-07-11com.greensock.plugins是greensock库中,与tweenLite/TweenMax等tween类搭配使用的组合功能。虽然号称是插件,但是功能真的很强。有小而精练的功能,也有象运动模拟这样的的大块头功能,这些都需要使用者慢慢的探索。这里只列出了自己常常使用的一些,让大家能少读几行英文。
具体的使用方法、语法、如何包含库等,可以阅读原文示例:http://www.greensock.com/as/docs/tween/com/greensock/plugins/package-detail.html
这里还有一个更形象的的动画演示及代码生成器:http://www.greensock.com/as/swf/PluginExplorer-v11.swf
另外,JS版本的plugins库也已经有了,文档在这里:http://api.greensock.com/js/,相比AS来说,只能说太弱太弱了。可以想见,基于JS的动画开发,还在远远的追赶之中。
plugins名称 | 我的描述 | 原英文描述(英文好的请自行对照) |
---|---|---|
AutoAlphaPlugin | 常用,当缓动alpha到零值时,将visible自动置为false不可见状态。 |
Tweening "autoAlpha" is exactly the same as tweening an object's "alpha" except that it ensures that the object's "visible" property is true until autoAlpha reaches zero at which point it will toggle the "visible" property to false. |
BevelFilterPlugin | 不常用,浮雕边滤镜功能。 |
Tweens a BevelFilter. |
BezierPlugin | 不常用,但功能强大,可以拟合贝塞尔曲线路径。 |
Bezier tweening allows you to tween in a non-linear way. |
BezierThroughPlugin | 不常用,贝塞尔曲线路径相关。 |
Identical to bezier except that instead of defining bezier control point values, you define points through which the bezier values should move. |
BlurFilterPlugin | 常用,模糊效果全靠它了。 |
Tweens a BlurFilter. |
CacheAsBitmapPlugin | 没用过。 |
Forces the cacheAsBitmap property of a DisplayObject to be a certain value (true or false) during the tween and then sets it back to whatever it was before the tween was rendered for the first time. |
CirclePath2DPlugin | Tweens an object along a CirclePath2D motion path in any direction (clockwise, counter-clockwise, or shortest). | |
ColorMatrixFilterPlugin | ColorMatrixFilter tweening offers an easy way to tween a DisplayObject's saturation, hue, contrast, brightness, and colorization. | |
ColorTransformPlugin | 很常用,尤其在做一些变色效果时,比如鼠标点上去变色、变高亮等--鼠标移开后又恢复原状等。 |
Ever wanted to tween ColorTransform properties of a DisplayObject to do advanced effects like overexposing, altering the brightness or setting the percent/amount of tint? or maybe tween individual ColorTransform properties like redMultiplier, redOffset, blueMultiplier, blueOffset, etc. |
DropShadowFilterPlugin | 常用,阴影滤镜,跟发光略有区别。 |
Tweens a DropShadowFilter. |
DynamicPropsPlugin | If you'd like to tween something to a destination value that may change at any time, DynamicPropsPlugin allows you to simply associate a function with a property so that every time the tween is rendered, it calls that function to get the new destination value for the associated property. | |
EndArrayPlugin | Tweens numbers in an Array. | |
EndVectorPlugin | Tweens numbers in an Vector.<Number>. | |
FrameBackwardPlugin | 小功能,向前N帧。 |
Tweens a MovieClip backward to a particular frame number, wrapping it if/when it reaches the beginning of the timeline. |
FrameForwardPlugin | 小功能,向后N帧。 |
Tweens a MovieClip forward to a particular frame number, wrapping it if/when it reaches the end of the timeline. |
FrameLabelPlugin | 居家必备之常用功能,缓动到指定的帧标签。 |
Tweens a MovieClip to a particular frame label. |
FramePlugin | 缓动到指定帧(用帧数字表示的)。 |
Tweens a MovieClip to a particular frame number. |
GlowFilterPlugin | 居家必备功能,发光滤镜值的缓动控制。 |
Tweens a GlowFilter. |
HexColorsPlugin | Although hex colors are technically numbers, if you try to tween them conventionally, you'll notice that they don't tween smoothly. | |
LiquidPositionPlugin |
很少用的功能,要跟LiquidStage相结合的一个功能。 LiquidStage本来就是GS会员才有的功能,一般人都不会用。LiquidStage介绍参见拙作:http://blog.258754.cn/article.asp?id=60 |
If you're using LiquidStage and you'd like to tween a DisplayObject to coordinates that are relative to a particular PinPoint (like the CENTER) whose position may change at any time,LiquidPositionPlugin makes it easy by dynamically updating the destination values accordingly. |
MotionBlurPlugin | 高级货-运动模糊插件,可以在运动时按运行方向产生模糊效果,做一些求逼真的效果,非常有用!但这是个会员才拥有的功能,好吧,反正我是会员。 |
MotionBlurPlugin provides an easy way to apply a directional blur to a DisplayObject based on its velocity and angle of movement in 2D (x/y). |
Physics2DPlugin | 高级货,会员功能,能产生逼真的运动学效果,看示意图就知道了。 |
Provides simple physics functionality for tweening a DisplayObject's x and y coordinates based on a combination of velocity, angle, gravity, acceleration, accelerationAngle, and/or friction. |
PhysicsPropsPlugin | Sometimes you want to tween a property (or several) but you don't have a specific end value in mind - instead, you'd rather describe the movement in terms of physics concepts, like velocity, acceleration, and/or friction. | |
QuaternionsPlugin | Performs SLERP interpolation between 2 Quaternions. | |
RemoveTintPlugin | 常用,移除加色效果,加色效果就是下面的TintPlugin |
Removes the tint of a DisplayObject over time. |
RoundPropsPlugin | If you'd like the inbetween values in a tween to always get rounded to the nearest integer, use the roundProps special property. | |
ScalePlugin | 小功能,让scaleX和scaleY同时变化。 |
ScalePlugin combines scaleX and scaleY into one "scale" property. |
ScrollRectPlugin | 小功能,让方块形状进行x/y/宽/高的同时变化。 |
Tweens the scrollRect property of a DisplayObject. |
SetActualSizePlugin | 没看太懂,似乎是让一些组件类恢复到原来的形状,不常用。 |
Some components require resizing with setActualSize() instead of standard tweens of width/height in order to scale properly. |
SetSizePlugin | 小功能。让宽和高同时变化。 |
Some components require resizing with setSize() instead of standard tweens of width/height in order to scale properly. |
ShortRotationPlugin | 不太常用但很有用的功能--沿短边旋转:当进行旋转时,会如果大于180度,会沿较小角度的那边旋转过去(反向)。 |
To tween any rotation property of the target object in the shortest direction, use "shortRotation" For example, if myObject.rotation is currently 170 degrees and you want to tween it to -170 degrees, a normal rotation tween would travel a total of 340 degrees in the counter-clockwise direction, but if you use shortRotation, it would travel 20 degrees in the clockwise direction instead. |
SoundTransformPlugin | 跟声音相关的,可以缓动一切跟声音相关的属性,音量、声道平衡、左转右等。 |
Tweens properties of an object's soundTransform property (like the volume, pan, leftToRight, etc. |
StageQualityPlugin | 对画面质量的一个缓动,没啥大用。 |
Sets the stage's quality to a particular value during a tween and another value after the tween which can be useful for improving rendering performance in the Flash Player while things are animating. |
ThrowPropsPlugin | ThrowPropsPlugin allows you to simply define an initial velocity for a property (or multiple properties) as well as optional maximum and/or minimum end values and then it will calculate the appropriate landing position and plot a smooth course based on the easing equation you define (Quad.easeOut by default, as set in TweenLite). | |
TintPlugin | 非常常用,向目标色缓动变色。比ColorTransformPlugin要简单,适用于简单的变色功能。 |
To change a DisplayObject's tint/color, set this to the hex value of the tint you'd like to end up at (or begin at if you're using TweenMax.from()). |
TransformAroundCenterPlugin | 常用!好用!以MC中心点进行旋转。 |
Normally, all transformations (scale, rotation, and position) are based on the DisplayObject's registration point (most often its upper left corner), but TransformAroundCenter allows you to make the 2D transformations occur around the DisplayObject's center. |
TransformAroundPointPlugin | 牛!用你指定的点进行旋转。 |
Normally, all transformations (scale, rotation, and position) are based on the DisplayObject's registration point (most often its upper left corner), but TransformAroundPoint allows you to define ANY point around which 2D transformations will occur during the tween. |
TransformMatrixPlugin | TransformMatrixPlugin allows you to tween a DisplayObject's transform.matrix values directly (a, b, c, d, tx, and ty) or use common properties like x, y, scaleX, scaleY, skewX, skewY, rotation and even shortRotation. | |
TweenPlugin | 这个不能直接用,是所有插件类的基类。 |
TweenPlugin is the base class for all TweenLite/TweenMax plugins. |
VisiblePlugin | 小功能,在任何缓动过程的终点,让MC不可见。 |
Toggles the visibility at the end of a tween. |
VolumePlugin | 跟音量相关的缓动,妈呀,总算写完了。 |
Tweens the volume of an object with a soundTransform property (MovieClip/SoundChannel/NetStream, etc.). |
引用通告: 查看所有引用 | 我要引用此文章
Tags: greensock_plugins
相关日志: