Tween.onMotion Methods
Pulled these out of the Flash Help section and figured I post them here as a reference.
AS2
Method Description
Tween.continueTo()
Instructs the tweened animation to continue from its current value to a new value.Tween.fforward()
Forwards the tweened animation directly to the end of the animation.Tween.nextFrame()
Forwards the tweened animation to the next frame.
Tween.prevFrame()
Directs the tweened animation to the frame previous to the current frame.Tween.resume()
Resumes a tweened animation from its stopped point in the animation.Tween.rewind()
Rewinds a tweened animation to the beginning of the tweened animation.Tween.start()
Starts the tweened animation from the beginning.Tween.stop()
Stops the tweened animation at its current position.Tween.toString()
Returns the class name, “[Tween]“.Tween.yoyo()
Instructs the tweened animation to play in reverse from its last direction of tweened property increments.
Event Description
Tween.onMotionChanged
Event handler; invoked with each change in the tweened object’s property that is being animated.Tween.onMotionFinished
Event handler; invoked when the Tween object finishes its animation.Tween.onMotionResumed
Event handler; invoked when the Tween.resume() method is called, causing the tweened animation to resume.Tween.onMotionStarted
Event handler; invoked when the Tween.start() method is called, causing the tweened animation to start.Tween.onMotionStopped
Event handler; invoked when the Tween.stop() method is called, causing the tweened animation to stop.
AS3
Method Description
Tween(obj:Object, prop:String, func:Function, begin:Number, finish:Number, duration:Number, useSeconds:Boolean = false)
Creates an instance of the Tween class.continueTo(finish:Number, duration:Number):void
Instructs the tweened animation to continue tweening from its current animation point to a new finish and duration point.fforward():void
Forwards the tweened animation directly to the final value of the tweened animation.nextFrame():void
Forwards the tweened animation to the next frame of an animation that was stopped.prevFrame():void
Plays the previous frame of the tweened animation from the current stopping point of an animation that was stopped.resume():void
Resumes the play of a tweened animation that has been stopped.rewind(t:Number = 0):void
Moves the play of a tweened animation back to its starting value.stop():void
Stops the play of a tweened animation at its current value.yoyo():void
Instructs the tweened animation to play in reverse from its last direction of tweened property increments.
Event Description
TweenEvent.motionChange
Indicates that the Tween has changed and the screen has been updated.TweenEvent.motionFinish
Indicates that the Tween has reached the end and finished.TweenEvent.motionLoop
Indicates that the Tween has restarted playing from the beginning in looping mode.TweenEvent.motionResume
Indicates that the Tween has resumed playing after being paused.TweenEvent.motionStart
Indicates that the motion has started playing.TweenEvent.motionStop
Indicates that the Tween has been stopped with an explicit call to Tween.stop().
About this entry
You’re currently reading “Tween.onMotion Methods,” an entry on homer gaines
- Published:
- 10.14.08 / 10am
- Category:
- ActionScript 2.0, Flash, Resources
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]