Packagecom.gskinner.motion.plugins
Classpublic class SnappingPlugin
ImplementsIGTweenPlugin

Plugin for GTween. Snaps (rounds) values to whole numbers during a tween.

Supports the following pluginData properties:



Public Properties
 PropertyDefined by
  enabled : Boolean = true
[static] Specifies whether this plugin is enabled for all tweens by default.
SnappingPlugin
Public Methods
 MethodDefined by
  
install(properties:Array = null):void
[static] Installs this plugin for use with all GTween instances.
SnappingPlugin
Property detail
enabledproperty
public static var enabled:Boolean = true

Specifies whether this plugin is enabled for all tweens by default.

Method detail
install()method
public static function install(properties:Array = null):void

Installs this plugin for use with all GTween instances.

Parameters
properties:Array (default = null) — Specifies the properties to apply this plugin to. Defaults to x and y.