Actions Editor Overview
Last updated
Last updated
Action Editor is a visual programming tool that offers the development of complex actions and scripts without the need to write a code, along with processing of such events as click, double click, page open and close, changes to widget properties. You can also start and stop media, control navigation, hide and show items, animate widget position, size and appearance, and simply change any properties of projects, pages or widgets available in Inspector.
Any changes caused by such actions will be only kept until the end of the session and will not be saved when the project is closed. When working in Editor, any actions may be canceled by a click beyond the workspace. To suspend any actions in Editor, click Stop action under the Script Editor launch button.
The Action Editor interface comprises Table, Arguments Bar, Animation Bar, and Repeat Bar. With this interface, any actions, triggered by events in other items, may be created for various items. In Arguments Bar, values for actions and properties may be specified, such as the page to navigate to or the color to fill the widget background. Animation Bar allows settings the speed and animation type for animated actions, such as widget movement speed. To configure the action sequence, the Delay field is used to enter the time (in milliseconds) after which an action is performed. In Repeat Bar, the interval and number of repeats for any specified action may be set.
Action Table contains the list of added actions.
The Source column indicates the item whose event triggers an action (in another or the same item).
The Event column indicates the event that triggers an action.
The Target column indicates the item for which the action is triggered.
In the Action column, actions are selected.
To change the cell value, double-click the cell. In the drop-down menu, select the item, event, and action.
After the action has been selected, the value for such action may be set in Arguments Bar. Certain actions do not take values, e.g., go to the next page. Other actions take multiple values simultaneously, e.g., in order to set a position, x and y values must be entered.
By default, the argument type is a Const, i.e. the value entered in the field.
To pass other item’s property as a value, specify Property as the argument type. A list of items whose properties can be used appears on the right. Select the property in the list below.
To use a condition or a mathematical operation, select Script as the argument type. In the text field, enter the expression whose value will be the argument for the action.
If the action is animatable, you may select the animation type and duration in Animation panel.
To delay an action, use the Delay field. Enter the time in milliseconds. When the event occurs, the action will be executed only after the set time.
To repeat the action multiple times, enter the number of repeats in Repeat panel. In the Interval field, specify the time after which the action will be repeated.