套件 | spark.effects.interpolation |
類別 | public class MultiValueInterpolator |
繼承 | MultiValueInterpolator Object |
實作 | IInterpolator |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
elementInterpolator : IInterpolator
The interpolator for each element of the input Array or Vector. | MultiValueInterpolator |
方法 | 定義自 | ||
---|---|---|---|
MultiValueInterpolator(elementInterpolator:IInterpolator = null)
Constructor. | MultiValueInterpolator | ||
Given a base value and a value to subtract from it,
return the result of that decrement operation. | MultiValueInterpolator | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Given a base value and a value to add to it,
return the result of that operation. | MultiValueInterpolator | ||
Given an elapsed fraction of an animation, between 0.0 and 1.0,
and start and end values to interpolate, return the interpolated value. | MultiValueInterpolator | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
elementInterpolator | 屬性 |
elementInterpolator:IInterpolator
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The interpolator for each element of the input Array or Vector. A value of null specifies to use the NumberInterpolator class.
預設值為 NumberInterpolator。
實作
public function get elementInterpolator():IInterpolator
public function set elementInterpolator(value:IInterpolator):void
MultiValueInterpolator | () | 建構函式 |
public function MultiValueInterpolator(elementInterpolator:IInterpolator = null)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
參數elementInterpolator:IInterpolator (default = null ) — The interpolator for each element
of the Array.
If no interpolator is specified, use the NumberInterpolator class.
|
decrement | () | 方法 |
public function decrement(baseValue:Object, decrementValue:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Given a base value and a value to subtract from it,
return the result of that decrement operation. For example,
if the objects are simple Numbers, the result would be
Number(baseValue) - Number(incrementValue)
.
This function is called by the animation system when it
needs to dynamically calculate a value given some ending
value and a 'by' value that should be subtracted from it. Both of
the arguments are of type Object and cannot simply be added together.
參數
baseValue:Object — The start value of the interpolation.
| |
decrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
increment | () | 方法 |
public function increment(baseValue:Object, incrementValue:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Given a base value and a value to add to it,
return the result of that operation.
For example, if the objects are simple Numbers, the result is a
Number(baseValue) + Number(incrementValue)
.
This method is called by the animation system when it
needs to dynamically calculate a value given some starting
value and a 'by' value that should be added to it. Both of
the arguments are of type Object and cannot simply be added together.
參數
baseValue:Object — The start value of the interpolation.
| |
incrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
interpolate | () | 方法 |
public function interpolate(fraction:Number, startValue:Object, endValue:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Given an elapsed fraction of an animation, between 0.0 and 1.0, and start and end values to interpolate, return the interpolated value. Interpolation for MultiValueInterpolator consists of running a separate interpolation on each element of the startValue and endValue arrays or vectors, returning a new Array or Vector that holds those interpolated values. The returned object will be an Array if startValue and endValue are of type Array, otherwise the returned object will be of type Vector.
參數
fraction:Number — The fraction elapsed of the
animation, between 0.0 and 1.0.
| |
startValue:Object — The start value of the interpolation.
| |
endValue:Object — The end value of the interpolation.
|
Object — The interpolated value.
|
Tue Jun 12 2018, 03:47 PM Z