套件 | spark.effects.animation |
介面 | public interface IAnimationTarget |
實作者 | AnimateInstance |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
相關 API 元素
方法 | 定義自 | ||
---|---|---|---|
Called when an Animation instance ends. | IAnimationTarget | ||
Called when an Animation instance repeats. | IAnimationTarget | ||
Called when an Animation instance starts. | IAnimationTarget | ||
Called when an Animation instance stops. | IAnimationTarget | ||
Called during every update of an Animation instance. | IAnimationTarget |
animationEnd | () | 方法 |
animationRepeat | () | 方法 |
public function animationRepeat(animation:Animation):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Called when an Animation instance repeats.
The Animation instance must have a repeatCount
equal to 0
(infinitely repeating) or a value greater than 1.
參數
animation:Animation — The Animation object.
|
animationStart | () | 方法 |
animationStop | () | 方法 |
public function animationStop(animation:Animation):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Called when an Animation instance stops.
This is different than animationEnd()
method,
which is called when the animation ends,
automatically setting the end values of the targets.
The animationStop()
method
is called when an animation is stopped where it's at.
Handling this event allows necessary cleanup when the animation
is interrupted.
參數
animation:Animation — The Animation object.
|
animationUpdate | () | 方法 |
public function animationUpdate(animation:Animation):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Called during every update of an Animation instance. If an implementation class is listening to an Animation specifically to be able to do something after the Animation values are calculated for a given time, this is the function in which those values should be used. The other methods in this interface are more informational. They tell the listeners when the Animation starts, stops, or repeats. This method is called when values have been calculated and something can be done with them.
參數
animation:Animation — The Animation object.
|
Tue Jun 12 2018, 03:47 PM Z