Inherits from JavaScript Object
Location aphid.g2d.actions

Overview of Tasks

Attributes

  • Type
  • int
  • int
  • int
  • int
  • int
  • int
  • int
  • int
  • int
  • int
  • Writability
  • readonly
  • readonly
  • readonly
  • readonly
  • readonly
  • readonly
  • readonly
  • readonly
  • readonly
  • readonly

Camera Actions

  • Return Type
  • IntervalAction

Ease Actions

  • Return Type
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction
  • EaseAction

Grid Actions

  • Return Type
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • InstantAction
  • InstantAction

Grid3D Actions

  • Return Type
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction

Instant Actions

  • Return Type
  • InstantAction
  • InstantAction
  • InstantAction
  • InstantAction
  • InstantAction
  • InstantAction
  • InstantAction

Interval Actions

  • Return Type
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction
  • IntervalAction

Misc Actions

  • Return Type
  • Action
  • Action
  • Action

Tiled Grid Actions

  • Return Type
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction
  • GridBaseAction

Attributes

TYPE_MASK_CALL_FUNCTION

readonly int TYPE_MASK_CALL_FUNCTION

TYPE_MASK_CAMERA

readonly int TYPE_MASK_CAMERA

TYPE_MASK_DEFAULT

readonly int TYPE_MASK_DEFAULT

TYPE_MASK_EASE

readonly int TYPE_MASK_EASE

TYPE_MASK_FINITE_TIME

readonly int TYPE_MASK_FINITE_TIME

TYPE_MASK_GRID

readonly int TYPE_MASK_GRID

TYPE_MASK_GRID3D

readonly int TYPE_MASK_GRID3D

TYPE_MASK_INSTANT

readonly int TYPE_MASK_INSTANT

TYPE_MASK_INTERVAL

readonly int TYPE_MASK_INTERVAL

TYPE_MASK_TILED_GRID3D

readonly int TYPE_MASK_TILED_GRID3D

Functions

accelAmplitude(action, duration)

IntervalAction accelAmplitude(GridBaseAction action, float duration)

Parameters

GridBaseAction action
float duration

Return Value: IntervalAction

accelDeccelAmplitude(action, duration)

IntervalAction accelDeccelAmplitude(GridBaseAction action, float duration)

Parameters

GridBaseAction action
float duration

Return Value: IntervalAction

animate(animation, [restoreOriginalFrame])

IntervalAction animate(Animation animation, [bool restoreOriginalFrame])

Parameters

Non-null Animation animation
Optional bool restoreOriginalFrame

Return Value: IntervalAction

animate(duration, animation, [restoreOriginalFrame])

IntervalAction animate(float duration, Animation animation, [bool restoreOriginalFrame])

Parameters

float duration
Non-null Animation animation
Optional bool restoreOriginalFrame

Return Value: IntervalAction

bezierBy(duration, endPosition, controlPoint1, controlPoint2)

IntervalAction bezierBy(float duration, Point endPosition, Point controlPoint1, Point controlPoint2)

Parameters

float duration
Non-null Point endPosition
Non-null Point controlPoint1
Non-null Point controlPoint2

Return Value: IntervalAction

bezierTo(duration, endPosition, controlPoint1, controlPoint2)

IntervalAction bezierTo(float duration, Point endPosition, Point controlPoint1, Point controlPoint2)

Parameters

float duration
Non-null Point endPosition
Non-null Point controlPoint1
Non-null Point controlPoint2

Return Value: IntervalAction

blink(duration, times)

IntervalAction blink(float duration, int times)

Parameters

float duration
int times

Return Value: IntervalAction

callFunction(callback)

InstantAction callFunction(function callback)

Parameters

Non-null function callback

Return Value: InstantAction

deccelAmplitude(action, duration)

IntervalAction deccelAmplitude(GridBaseAction action, float duration)

Parameters

GridBaseAction action
float duration

Return Value: IntervalAction

delay(duration)

IntervalAction delay(float duration)

Parameters

float duration

Return Value: IntervalAction

easeBackIn(action)

EaseAction easeBackIn(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeBackInOut(action)

EaseAction easeBackInOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeBackOut(action)

EaseAction easeBackOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeBounceIn(action)

EaseAction easeBounceIn(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeBounceInOut(action)

EaseAction easeBounceInOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeBounceOut(action)

EaseAction easeBounceOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeElasticIn(action, period)

EaseAction easeElasticIn(IntervalAction action, float period)

Parameters

Non-null IntervalAction action
float period

Return Value: EaseAction

easeElasticInOut(action, period)

EaseAction easeElasticInOut(IntervalAction action, float period)

Parameters

Non-null IntervalAction action
float period

Return Value: EaseAction

easeElasticOut(action, period)

EaseAction easeElasticOut(IntervalAction action, float period)

Parameters

Non-null IntervalAction action
float period

Return Value: EaseAction

easeExponentialIn(action)

EaseAction easeExponentialIn(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeExponentialInOut(action)

EaseAction easeExponentialInOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeExponentialOut(action)

EaseAction easeExponentialOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeIn(action, rate)

EaseAction easeIn(IntervalAction action, float rate)

Parameters

Non-null IntervalAction action
float rate

Return Value: EaseAction

easeInOut(action, rate)

EaseAction easeInOut(IntervalAction action, float rate)

Parameters

Non-null IntervalAction action
float rate

Return Value: EaseAction

easeOut(action, rate)

EaseAction easeOut(IntervalAction action, float rate)

Parameters

Non-null IntervalAction action
float rate

Return Value: EaseAction

easeSineIn(action)

EaseAction easeSineIn(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeSineInOut(action)

EaseAction easeSineInOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

easeSineOut(action)

EaseAction easeSineOut(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: EaseAction

fadeIn(duration)

IntervalAction fadeIn(float duration)

Parameters

float duration

Return Value: IntervalAction

fadeOut(duration)

IntervalAction fadeOut(float duration)

Parameters

float duration

Return Value: IntervalAction

fadeOutBLTiles(gridSize, duration)

GridBaseAction fadeOutBLTiles(Size gridSize, float duration)

Parameters

Non-null Size gridSize
float duration

Return Value: GridBaseAction

fadeOutDownTiles(gridSize, duration)

GridBaseAction fadeOutDownTiles(Size gridSize, float duration)

Parameters

Non-null Size gridSize
float duration

Return Value: GridBaseAction

fadeOutTRTiles(gridSize, duration)

GridBaseAction fadeOutTRTiles(Size gridSize, float duration)

Parameters

Non-null Size gridSize
float duration

Return Value: GridBaseAction

fadeOutUpTiles(gridSize, duration)

GridBaseAction fadeOutUpTiles(Size gridSize, float duration)

Parameters

Non-null Size gridSize
float duration

Return Value: GridBaseAction

fadeTo(duration, opacity)

IntervalAction fadeTo(float duration, int opacity)

Parameters

float duration
int opacity

Return Value: IntervalAction

flipX(flipX)

InstantAction flipX(bool flipX)

Parameters

bool flipX

Return Value: InstantAction

flipX3D(duration)

GridBaseAction flipX3D(float duration)

Parameters

float duration

Return Value: GridBaseAction

flipY(flipY)

InstantAction flipY(bool flipY)

Parameters

bool flipY

Return Value: InstantAction

flipY3D(duration)

GridBaseAction flipY3D(float duration)

Parameters

float duration

Return Value: GridBaseAction

follow(node, [worldBoundary])

Action follow(Node node, [Rect worldBoundary])

Parameters

Node node
Optional Non-null Rect worldBoundary

Return Value: Action

hide()

Return Value: InstantAction

jumpBy(duration, deltaPosition, height, jumps)

IntervalAction jumpBy(float duration, Point deltaPosition, float height, int jumps)

Parameters

float duration
Non-null Point deltaPosition
float height
int jumps

Return Value: IntervalAction

jumpTiles3D(waves, amplitude, gridSize, duration)

GridBaseAction jumpTiles3D(int waves, float amplitude, Size gridSize, float duration)

Parameters

int waves
float amplitude
Non-null Size gridSize
float duration

Return Value: GridBaseAction

jumpTo(duration, position, height, jumps)

IntervalAction jumpTo(float duration, Point position, float height, int jumps)

Parameters

float duration
Non-null Point position
float height
int jumps

Return Value: IntervalAction

lens3D(pos, radius, gridSize, duration)

GridBaseAction lens3D(Point pos, float radius, Size gridSize, float duration)

Parameters

Non-null Point pos
float radius
Non-null Size gridSize
float duration

Return Value: GridBaseAction

liquid(waves, amplitude, gridSize, duration)

GridBaseAction liquid(int waves, float amplitude, Size gridSize, float duration)

Parameters

int waves
float amplitude
Non-null Size gridSize
float duration

Return Value: GridBaseAction

moveBy(duration, deltaPosition)

IntervalAction moveBy(float duration, Point deltaPosition)

Parameters

float duration
Non-null Point deltaPosition

Return Value: IntervalAction

moveBy(duration, deltaX, deltaY)

IntervalAction moveBy(float duration, float deltaX, float deltaY)

Parameters

float duration
float deltaX
float deltaY

Return Value: IntervalAction

moveTo(duration, position)

IntervalAction moveTo(float duration, Point position)

Parameters

float duration
Non-null Point position

Return Value: IntervalAction

moveTo(duration, x, y)

IntervalAction moveTo(float duration, float x, float y)

Parameters

float duration
float x
float y

Return Value: IntervalAction

orbitCamera(duration, radius, deltaRadius, angleZ, deltaAngleZ, angleX, deltaAngleX)

IntervalAction orbitCamera(float duration, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX)

Parameters

float duration
float radius
float deltaRadius
float angleZ
float deltaAngleZ
float angleX
float deltaAngleX

Return Value: IntervalAction

pageTurn3D(gridSize, duration)

GridBaseAction pageTurn3D(Size gridSize, float duration)

Parameters

Non-null Size gridSize
float duration

Return Value: GridBaseAction

place(pos)

InstantAction place(Point pos)

Parameters

Non-null Point pos

Return Value: InstantAction

repeat(action, times)

IntervalAction repeat(FiniteTimeAction action, int times)

Parameters

Non-null FiniteTimeAction action
int times

Return Value: IntervalAction

repeatForever(action)

Action repeatForever(IntervalAction action)

Parameters

Non-null IntervalAction action

Return Value: Action

reuseGrid(times)

InstantAction reuseGrid(int times)

Parameters

int times

Return Value: InstantAction

ripple3D(pos, radius, waves, amplitude, gridSize, duration)

GridBaseAction ripple3D(Point pos, float radius, int waves, float amplitude, Size gridSize, float duration)

Parameters

Non-null Point pos
float radius
int waves
float amplitude
Non-null Size gridSize
float duration

Return Value: GridBaseAction

rotateBy(duration, deltaAngle)

IntervalAction rotateBy(float duration, float deltaAngle)

Parameters

float duration
float deltaAngle

Return Value: IntervalAction

rotateTo(duration, angle)

IntervalAction rotateTo(float duration, float angle)

Parameters

float duration
float angle

Return Value: IntervalAction

scaleBy(duration, deltaScaleXY)

IntervalAction scaleBy(float duration, float deltaScaleXY)

Parameters

float duration
float deltaScaleXY

Return Value: IntervalAction

scaleBy(duration, deltaScale)

IntervalAction scaleBy(float duration, Vector2 deltaScale)

Parameters

float duration
Non-null Vector2 deltaScale

Return Value: IntervalAction

scaleTo(duration, scale)

IntervalAction scaleTo(float duration, Vector2 scale)

Parameters

float duration
Non-null Vector2 scale

Return Value: IntervalAction

scaleTo(duration, scaleX, scaleY)

IntervalAction scaleTo(float duration, float scaleX, float scaleY)

Parameters

float duration
float scaleX
float scaleY

Return Value: IntervalAction

sequence(action0, action1,...)

IntervalAction sequence(FiniteTimeAction action0, FiniteTimeAction action1,…)

Parameters

Non-null FiniteTimeAction action0
Non-null FiniteTimeAction action1

Return Value: IntervalAction

shaky3D(range, shakeZ, gridSize, duration)

GridBaseAction shaky3D(int range, bool shakeZ, Size gridSize, float duration)

Parameters

int range
bool shakeZ
Non-null Size gridSize
float duration

Return Value: GridBaseAction

shakyTiles3D(range, shakeZ, gridSize, duration)

GridBaseAction shakyTiles3D(int range, bool shakeZ, Size gridSize, float duration)

Parameters

int range
bool shakeZ
Non-null Size gridSize
float duration

Return Value: GridBaseAction

shatteredTiles3D(range, shatterZ, gridSize, duration)

GridBaseAction shatteredTiles3D(int range, bool shatterZ, Size gridSize, float duration)

Parameters

int range
bool shatterZ
Non-null Size gridSize
float duration

Return Value: GridBaseAction

show()

Return Value: InstantAction

shuffleTiles(seed, gridSize, duration)

GridBaseAction shuffleTiles(int seed, Size gridSize, float duration)

Parameters

int seed
Non-null Size gridSize
float duration

Return Value: GridBaseAction

skewBy(duration, deltaSkew)

IntervalAction skewBy(float duration, Vector2 deltaSkew)

Parameters

float duration
Non-null Vector2 deltaSkew

Return Value: IntervalAction

skewBy(duration, deltaSkewX, deltaSkewY)

IntervalAction skewBy(float duration, float deltaSkewX, float deltaSkewY)

Parameters

float duration
float deltaSkewX
float deltaSkewY

Return Value: IntervalAction

skewTo(duration, skew)

IntervalAction skewTo(float duration, Vector2 skew)

Parameters

float duration
Non-null Vector2 skew

Return Value: IntervalAction

skewTo(duration, skewX, skewY)

IntervalAction skewTo(float duration, float skewX, float skewY)

Parameters

float duration
float skewX
float skewY

Return Value: IntervalAction

spawn(action0, action1,...)

Parameters

Non-null FiniteTimeAction action0
Non-null FiniteTimeAction action1

Return Value: IntervalAction

speed(action, speed)

Action speed(IntervalAction action, float speed)

Parameters

IntervalAction action
float speed

Return Value: Action

splitColumns(cols, duration)

GridBaseAction splitColumns(int cols, float duration)

Parameters

int cols
float duration

Return Value: GridBaseAction

splitRows(rows, duration)

GridBaseAction splitRows(int rows, float duration)

Parameters

int rows
float duration

Return Value: GridBaseAction

stopGrid()

InstantAction stopGrid()

Return Value: InstantAction

tintBy(duration, r, g, b)

IntervalAction tintBy(float duration, int r, int g, int b)

Parameters

float duration
int r
int g
int b

Return Value: IntervalAction

tintBy(duration, byColor)

IntervalAction tintBy(float duration, color byColor)

Parameters

float duration
Non-null color byColor

Return Value: IntervalAction

tintTo(duration, r, g, b)

IntervalAction tintTo(float duration, int r, int g, int b)

Parameters

float duration
int r
int g
int b

Return Value: IntervalAction

toggleVisible()

InstantAction toggleVisible()

Return Value: InstantAction

turnOffTiles(seed, gridSize, duration)

GridBaseAction turnOffTiles(int seed, Size gridSize, float duration)

Parameters

int seed
Non-null Size gridSize
float duration

Return Value: GridBaseAction

twirl(pos, twirls, amplitude, gridSize, duration)

GridBaseAction twirl(Point pos, int twirls, float amplitude, Size gridSize, float duration)

Parameters

Non-null Point pos
int twirls
float amplitude
Non-null Size gridSize
float duration

Return Value: GridBaseAction

waves(waves, amplitude, isHorizontal, isVertical, gridSize, duration)

GridBaseAction waves(int waves, float amplitude, bool isHorizontal, bool isVertical, Size gridSize, float duration)

Parameters

int waves
float amplitude
bool isHorizontal
bool isVertical
Non-null Size gridSize
float duration

Return Value: GridBaseAction

waves3D(waves, amplitude, gridSize, duration)

GridBaseAction waves3D(int waves, float amplitude, Size gridSize, float duration)

Parameters

int waves
float amplitude
Non-null Size gridSize
float duration

Return Value: GridBaseAction

wavesTiles3D(waves, amplitude, gridSize, duration)

GridBaseAction wavesTiles3D(int waves, float amplitude, Size gridSize, float duration)

Parameters

int waves
float amplitude
Non-null Size gridSize
float duration

Return Value: GridBaseAction