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的动画开发,还在远远的追赶之中。
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.
Tweens a BevelFilter.
Bezier tweening allows you to tween in a non-linear way.
Identical to bezier except that instead of defining bezier control point values, you define points through which the bezier values should move.
Tweens a BlurFilter.
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.
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.
Tweens a DropShadowFilter.
Tweens a MovieClip backward to a particular frame number, wrapping it if/when it reaches the beginning of the timeline.
Tweens a MovieClip forward to a particular frame number, wrapping it if/when it reaches the end of the timeline.
Tweens a MovieClip to a particular frame label.
Tweens a MovieClip to a particular frame number.
Tweens a GlowFilter.
很少用的功能,要跟LiquidStage相结合的一个功能。
LiquidStage本来就是GS会员才有的功能,一般人都不会用。LiquidStage介绍参见拙作:http://www.contactu.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 provides an easy way to apply a directional blur to a DisplayObject based on its velocity and angle of movement in 2D (x/y).
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.
Removes the tint of a DisplayObject over time.
ScalePlugin combines scaleX and scaleY into one "scale" property.
Tweens the scrollRect property of a DisplayObject.
Some components require resizing with setActualSize() instead of standard tweens of width/height in order to scale properly.
Some components require resizing with setSize() instead of standard tweens of width/height in order to scale properly.
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.
Tweens properties of an object's soundTransform property (like the volume, pan, leftToRight, etc.
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.
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()).
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.
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.
TweenPlugin is the base class for all TweenLite/TweenMax plugins.
Toggles the visibility at the end of a tween.
Tweens the volume of an object with a soundTransform property (MovieClip/SoundChannel/NetStream, etc.).









