Packagestarlingbuilder.engine.tween
Classpublic class DefaultTweenBuilder
InheritanceDefaultTweenBuilder Inheritance Object
Implements ITweenBuilder

Default implementation of ITweenBuilder

Example data1:

{"time":1, "properties":{"scaleX":0.9, "scaleY":0.9, "repeatCount":0, "reverse":true}}

Example data2:

[{"properties":{"repeatCount":0,"scaleY":0.9,"reverse":true,"scaleX":0.9},"time":1},{"properties":{"repeatCount":0,"alpha":0,"reverse":true},"time":0.5}]

Example data3:

{"time":0.5,"properties":{"repeatCount":0,"reverse":true},"delta":{"y":-10}}

See also

ITweenBuilder
Using tween


Public Methods
 MethodDefined By
  
Constructor
DefaultTweenBuilder
  
start(root:DisplayObject, paramsDict:Dictionary, names:Array = null):void
Start tween according tweenData in layout
DefaultTweenBuilder
  
stop(root:DisplayObject, paramsDict:Dictionary = null, names:Array = null):void
Stop tween according tweenData in layout
DefaultTweenBuilder
Constructor Detail
DefaultTweenBuilder()Constructor
public function DefaultTweenBuilder()

Constructor

Method Detail
start()method
public function start(root:DisplayObject, paramsDict:Dictionary, names:Array = null):void

Start tween according tweenData in layout

Parameters

root:DisplayObject — of the DisplayObjects need to tween
 
paramsDict:Dictionary — A dictionary of the mapping of every UIElement to its layout data
 
names:Array (default = null) — array of names (e.g. ["container.button1", "container.button2") to be start tween, if null then start all the available tween

stop()method 
public function stop(root:DisplayObject, paramsDict:Dictionary = null, names:Array = null):void

Stop tween according tweenData in layout

Parameters

root:DisplayObject — of the DisplayObject needs to be tween
 
paramsDict:Dictionary (default = null) — A dictionary of the mapping of every UIElement to its layout data, if null then stop all the available tweens
 
names:Array (default = null) — array of names (e.g. ["container.button1", "container.button2") to be stop tween, if null then stop all the available tweens