ActionDescriptor Class
Describes an action which can be executed by a component.
Item Index
Properties
Properties
conditions
ConditionDescriptor[]
Defines which must be true before the action can be executed. If multiple actions are defined for a control, only the actions where the conditions are true will be executed.
name
String
The name of the action to execute. That name must match the name of a action-method in the target-object's class.
params
Object
An optional params-object which is passed to the target-object's action-method as second argument.
target
String
The target-object on which the action should be executed. The target-object's class needs to contain the action-method defined in the ActionDescriptor.name property. The default target-object is the current scene-behavior component.
The target-property is first interpreted as a binding-expression. If that expression doesn't return a result it is interpreted as an action-target expression which uses the syntax:
[control-id].[component-id]
Like in the following example:
{ .... "target": "myControl.myComponent" .... }
If the control or component doesn't exist the current scene-behavior component is used.
wait
Number
Defines a time-delay in frames before the action is executed.