Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

ScriptAction

MikhailTymchukDX edited this page Aug 25, 2016 · 2 revisions

ScriptAction (inherits Action)

The ScriptAction is used to execute arbitrary JavaScript.

Client properties

Name Description
get_script JavaScript to execute.

Client methods

Name Description
.ctor(target, duration, fps, script)
doAction() Executes the script.

Client properties

get_script

JavaScript to execute.

Getter name: get_script()
Setter name: set_script(value)

Client methods

.ctor(target, duration, fps, script)

Params:

  • target

    • Type: Object
    • Description: Target of the animation.
  • duration

    • Type: Number
    • Description: Length of the animation in seconds. The default is 1.
  • fps

    • Type: Number
    • Description: Number of steps per second. The default is 25.
  • script

    • Type: String
    • Description: JavaScript to execute.

doAction()

Executes the script.

Clone this wiki locally