Packagesekati.transitions
Classpublic class Motion

Motion provides some common Tweener shortcuts.


Example
   Tweener.addTween( mySprite, base:Motion.base, x:100 ); // a base transition
   Tweener.addTween( mySprite, base:Motion.base, transition:Motion.o.expo, y:100 ); // a customized base transition 
  



Public Properties
 PropertyDefined by
  base : Object
[static][read-only]
Motion
  baseLong : Object
[static][read-only]
Motion
  baseMedium : Object
[static][read-only]
Motion
  baseShort : Object
[static][read-only]
Motion
  baseXLong : Object
[static][read-only]
Motion
  fadeIn : Object
[static][read-only]
Motion
  fadeOut : Object
[static][read-only]
Motion
Public Methods
 MethodDefined by
  
Motion Static Constructor
Motion
  
burst(o:DisplayObject, c:Number, cb:Function):void
[static] Create a small "burst" transition
Motion
  
colorTo(c:Number):Object
[static] Return a base tween object color transition
Motion
  
fadeTo(a:Number):Object
[static]
Motion
  
glow(a:Number, b:Number, c:Number, s:Number):Object
[static] Return a base tween object glow transition
Motion
  
normalize(o:DisplayObject):void
[static] Normalize a clip
Motion
Public Constants
 ConstantDefined by
  i : Object
[static] EaseIn Shortcuts
Motion
  io : Object
[static] EaseInOut Shortcuts
Motion
  o : Object
[static] EaseOut Shortcuts
Motion
  time : Object
[static] Time Shortcuts
Motion
Property detail
baseproperty
base:Object  [read-only]Implementation
    public static function get base():Object
baseLongproperty 
baseLong:Object  [read-only]Implementation
    public static function get baseLong():Object
baseMediumproperty 
baseMedium:Object  [read-only]Implementation
    public static function get baseMedium():Object
baseShortproperty 
baseShort:Object  [read-only]Implementation
    public static function get baseShort():Object
baseXLongproperty 
baseXLong:Object  [read-only]Implementation
    public static function get baseXLong():Object
fadeInproperty 
fadeIn:Object  [read-only]Implementation
    public static function get fadeIn():Object
fadeOutproperty 
fadeOut:Object  [read-only]Implementation
    public static function get fadeOut():Object
Constructor detail
Motion()constructor
public function Motion()

Motion Static Constructor

Method detail
burst()method
public static function burst(o:DisplayObject, c:Number, cb:Function):void

Create a small "burst" transition

Parameters
o:DisplayObject
 
c:Number
 
cb:Function
colorTo()method 
public static function colorTo(c:Number):Object

Return a base tween object color transition

Parameters
c:Number

Returns
Object
fadeTo()method 
public static function fadeTo(a:Number):ObjectParameters
a:Number

Returns
Object
glow()method 
public static function glow(a:Number, b:Number, c:Number, s:Number):Object

Return a base tween object glow transition

Parameters
a:Number — alpha [0-1]
 
b:Number — blur [0-255]
 
c:Number — color [hex]
 
s:Number — strength [0-255]

Returns
Object — Object
normalize()method 
public static function normalize(o:DisplayObject):void

Normalize a clip

Parameters
o:DisplayObject
Constant detail
iconstant
public static const i:Object

EaseIn Shortcuts

ioconstant 
public static const io:Object

EaseInOut Shortcuts

oconstant 
public static const o:Object

EaseOut Shortcuts

timeconstant 
public static const time:Object

Time Shortcuts