套件 | spark.effects.easing |
類別 | public class EaseInOutBase |
繼承 | EaseInOutBase Object |
實作 | IEaser |
子類別 | Power, Sine |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The <s:EaseInOutBase>
tag
inherits all of the tag attributes of its of its superclass,
and adds the following tag attributes:
<s:EaseInOutBase id="ID" easeInFraction="0.5" />
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
easeInFraction : Number
The percentage of an animation that should be spent accelerating. | EaseInOutBase |
方法 | 定義自 | ||
---|---|---|---|
EaseInOutBase(easeInFraction:Number = NaN)
Constructor. | EaseInOutBase | ||
Takes the fraction representing the elapsed duration of an animation
(a value between 0.0 to 1.0) and returns a new elapsed value. | EaseInOutBase | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
方法 | 定義自 | ||
---|---|---|---|
Returns a value that represents the eased fraction during the
ease in phase of the animation. | EaseInOutBase | ||
Returns a value that represents the eased fraction during the
ease out phase of the animation. | EaseInOutBase |
easeInFraction | 屬性 |
easeInFraction:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The percentage of an animation that should be spent accelerating.
This factor sets an implicit
"easeOut" parameter, equal to (1 - easeIn
), so that any time not
spent easing in is spent easing out. For example, to have an easing
equation that spends half the time easing in and half easing out,
set easeIn
to .5.
Valid values are between 0.0 and 1.0.
預設值為 .5。
實作
public function get easeInFraction():Number
public function set easeInFraction(value:Number):void
EaseInOutBase | () | 建構函式 |
public function EaseInOutBase(easeInFraction:Number = NaN)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
參數easeInFraction:Number (default = NaN ) — Sets the value of
the easeInFraction property. The default value is
EasingFraction.IN_OUT , which eases in for the first half
of the time and eases out for the remainder.
|
ease | () | 方法 |
public function ease(fraction:Number):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Takes the fraction representing the elapsed duration of an animation
(a value between 0.0 to 1.0) and returns a new elapsed value.
This value is used to calculate animated property values.
By changing the value of the elapsed fraction, you effectively change
the animation of the property.
For EaseInOutBase, this method calculates the eased fraction
value based on the easeInFraction
property. If
fraction
is less than easeInFraction
,
this method calls the easeIn()
method. Otherwise it
calls the easeOut()
method.
It is expected
that these functions are overridden in a subclass.
參數
fraction:Number — The elapsed fraction of the animation.
|
Number — The eased fraction of the animation.
|
easeIn | () | 方法 |
protected function easeIn(fraction:Number):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns a value that represents the eased fraction during the ease in phase of the animation. The value returned by this class is simply the fraction itself, which represents a linear interpolation of the fraction. More interesting behavior is implemented by subclasses of EaseInOutBase.
參數
fraction:Number — The fraction elapsed of the easing in phase
of the animation, between 0.0 and 1.0.
|
Number — A value that represents the eased value for this
phase of the animation.
|
easeOut | () | 方法 |
protected function easeOut(fraction:Number):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns a value that represents the eased fraction during the ease out phase of the animation. The value returned by this class is simply the fraction itself, which represents a linear interpolation of the fraction. More interesting behavior is implemented by subclasses of EaseInOutBase.
參數
fraction:Number — The fraction elapsed of the easing out phase
of the animation, between 0.0 and 1.0.
|
Number — A value that represents the eased value for this
phase of the animation.
|
Tue Jun 12 2018, 03:47 PM Z