패키지 | spark.effects.animation |
클래스 | public class SimpleMotionPath |
상속 | SimpleMotionPath MotionPath Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
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 요소
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
interpolator : IInterpolator
The interpolator determines how in-between values in an animation
are calculated. | MotionPath | ||
keyframes : Vector.<Keyframe>
A sequence of Keyframe objects that represent the time/value pairs
that the property takes during the animation. | MotionPath | ||
property : 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 | ||
Returns a copy of this MotionPath object, including copies
of each keyframe. | MotionPath | ||
Calculates and returns an interpolated value, given the elapsed
time fraction. | MotionPath | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | 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.
|
Tue Jun 12 2018, 03:17 PM Z