Packagefeathers.motion.effectClasses
Classpublic class TweenResizeEffectContext
InheritanceTweenResizeEffectContext Inheritance TweenEffectContext Inheritance BaseEffectContext Inheritance starling.events.EventDispatcher
Implements IResizeEffectContext

Product Version : Feathers 3.5.0

A resize effect context for a starling.animation.Tween.

See also

Effects and animation for Feathers components
starling.animation.Tween
feathers.core.FeathersControl.resizeEffect


Public Properties
 PropertyDefined By
 Inheritedduration : Number
[read-only] The duration of the effect, in seconds.
BaseEffectContext
 InheritedinterruptBehavior : String
Indicates how the effect behaves when it is interrupted.
TweenEffectContext
 Inheritedjuggler : Juggler
The Juggler used to update the effect when it is playing.
BaseEffectContext
  newHeight : Number
The new height of the target.
TweenResizeEffectContext
  newWidth : Number
The new width of the target.
TweenResizeEffectContext
  oldHeight : Number
The old height of the target.
TweenResizeEffectContext
  oldWidth : Number
The old width of the target.
TweenResizeEffectContext
 Inheritedposition : Number
Sets the position of the effect using a value between 0 and 1.
BaseEffectContext
 Inheritedtarget : DisplayObject
[read-only] The target of the effect.
BaseEffectContext
 Inheritedtransition : Object
[read-only] The transition, or easing function, used for the effect.
BaseEffectContext
 Inheritedtween : Tween
[read-only] The tween that is controlled by the effect.
TweenEffectContext
Public Methods
 MethodDefined By
  
TweenResizeEffectContext(target:DisplayObject, tween:Tween)
Constructor.
TweenResizeEffectContext
 Inherited
interrupt():void
Interrupts the playing effect, but the effect context will be allowed to determine on its own if it should call stop() or toEnd().
BaseEffectContext
 Inherited
pause():void
Pauses an effect that is currently playing.
BaseEffectContext
 Inherited
play():void
Starts playing the effect from its current position to the end.
BaseEffectContext
 Inherited
Starts playing the effect from its current position back to the beginning (completing at a position of 0).
BaseEffectContext
 Inherited
stop():void
Stops the effect at its current position and forces Event.COMPLETE to dispatch.
BaseEffectContext
 Inherited
toEnd():void
Advances the effect to the end and forces Event.COMPLETE to dispatch.
BaseEffectContext
Protected Methods
 MethodDefined By
 Inherited
Called when the effect completes or is interrupted.
BaseEffectContext
 Inherited
Called when the effect is initialized.
BaseEffectContext
 Inherited
Called when the effect's position is updated.
BaseEffectContext
Events
 Event Summary Defined By
 InheritedDispatched when the effect completes or is interrupted.BaseEffectContext
Property Detail
newHeightproperty
newHeight:Number

The new height of the target.


Implementation
    public function get newHeight():Number
    public function set newHeight(value:Number):void
newWidthproperty 
newWidth:Number

The new width of the target.


Implementation
    public function get newWidth():Number
    public function set newWidth(value:Number):void
oldHeightproperty 
oldHeight:Number

The old height of the target.


Implementation
    public function get oldHeight():Number
    public function set oldHeight(value:Number):void
oldWidthproperty 
oldWidth:Number

The old width of the target.


Implementation
    public function get oldWidth():Number
    public function set oldWidth(value:Number):void
Constructor Detail
TweenResizeEffectContext()Constructor
public function TweenResizeEffectContext(target:DisplayObject, tween:Tween)

Constructor.

Parameters
target:DisplayObject
 
tween:Tween