適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
spark.effects.animation 

SimpleMotionPath  - AS3 Flex

套件spark.effects.animation
類別public class SimpleMotionPath
繼承SimpleMotionPath Inheritance MotionPath Inheritance Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The SimpleMotionPath class specifies the name of a property, and the values that that property takes over time, for instances of the Animate effect.

This class is a simple subclass of MotionPath for defining two keyframes to hold the valueFrom, valueTo, and valueBy properties. The MotionPath class itself can define any number of keyframes.

預設 MXML 屬性keyframes

相關 API 元素



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
 Inheritedinterpolator : IInterpolator
The interpolator determines how in-between values in an animation are calculated.
MotionPath
 Inheritedkeyframes : Vector.<Keyframe>
A sequence of Keyframe objects that represent the time/value pairs that the property takes during the animation.
MotionPath
 Inheritedproperty : String
The name of the property on the effect target to be animated.
MotionPath
  valueBy : Object
Optional property which specifies the delta used to calculate either the valueFrom or valueTo value.
SimpleMotionPath
  valueFrom : Object
The starting value for the property during the animation.
SimpleMotionPath
  valueTo : Object
The value that the named property will animate to.
SimpleMotionPath
公用方法
 方法定義自
  
SimpleMotionPath(property:String = null, valueFrom:Object = null, valueTo:Object = null, valueBy:Object = null)
Constructor.
SimpleMotionPath
 Inherited
Returns a copy of this MotionPath object, including copies of each keyframe.
MotionPath
 Inherited
Calculates and returns an interpolated value, given the elapsed time fraction.
MotionPath
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

valueBy

屬性
valueBy:Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

Optional property which specifies the delta used to calculate either the valueFrom or valueTo value. Providing this optional property lets the effect calculate the necessary from/to values if either are not provided or are to be determined dynamically when the animation begins.

The way that the valueBy value is used depends on which of the other values are set. If neither are set, then the valueFrom value is determined from the current property value in the target, and the valueTo value is valueFrom + valueBy. If one or the other is set, but not both, then the unset value is calculated by the other value: valueTo = valueFrom + valueBy or valueFrom = valueTo - valueBy). If both are set, then the valueBy property is ignored.

Note that since valueBy is of type Object, the effect cannot directly calculate the other values from it. It uses the effect's interpolator to calculate the values by calling the interpolator's increment() and decrement() methods. If no interpolator is set, then it will use NumberInterpolator by default.



實作
    public function get valueBy():Object
    public function set valueBy(value:Object):void

valueFrom

屬性 
valueFrom:Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The starting value for the property during the animation.

A value of Null or NaN (in the case of Numbers) specifies that a value must be determined dynamically at runtime, either by getting the value from the target property directly or calculating it if the other value is valid and there is also a valid valueBy value supplied.



實作
    public function get valueFrom():Object
    public function set valueFrom(value:Object):void

valueTo

屬性 
valueTo:Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The value that the named property will animate to.

A value of Null or NaN (in the case of Numbers) element specifies that a value must be determined dynamically at runtime, either by getting the value from the target property directly or calculating it if the other value is valid and there is also a valid valueBy value supplied.



實作
    public function get valueTo():Object
    public function set valueTo(value:Object):void
建構函式詳細資料

SimpleMotionPath

()建構函式
public function SimpleMotionPath(property:String = null, valueFrom:Object = null, valueTo:Object = null, valueBy:Object = null)

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

Constructor. You can specify both the valueFrom and valueTo parameters, or specify the valueBy parameter and either the valueFrom or valueTo parameter. If you omit these parameters, Flex calculates them from the effect target.

參數
property:String (default = null) — The name of the property being animated.
 
valueFrom:Object (default = null) — The initial value of the property.
 
valueTo:Object (default = null) — The final value of the property.
 
valueBy:Object (default = null) — An optional parameter that specifies the delta with which to calculate either the from or to values, if one is omitted.




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。