Configuring an Action Script Animation
- Last UpdatedJul 13, 2023
- 2 minute read
You can configure an element with an action script animation.
You can assign multiple action scripts to one element that are activated in different ways such as:
|
Use this... |
To activate the action script when the... |
|---|---|
|
On Left Click/Key/Touch Down |
left mouse button or a specific key is pressed or a tap on a touch display. |
|
While Left Click/Key/Touch Down |
left mouse button or a specific key is pressed and held or the touch display is tapped and held. |
|
On Left/Key/Touch Up |
left mouse button or a specific key is released or the tap is released from a touch display. |
|
On Left Double Click/Double Tap |
left mouse button is double-clicked or the touch display is tapped twice in quick succession. |
|
On Right Click/Long Press |
right mouse button is pressed or a long press on the touch display. |
|
While Right Down |
right mouse button is pressed and held. |
|
On Right Up |
right button is released. |
|
On Right Double Click |
right mouse button is double-clicked. |
|
On Center Click |
center mouse button is pressed. |
|
While Center Click |
center mouse button is pressed and held. |
|
On Center Up |
center mouse button is released. |
|
On Center Double Click |
center mouse button is double-clicked. |
|
On Mouse Over |
pointer is moved over the element. |
|
On Mouse Leave |
pointer is moved out of the element. |
|
On Startup |
element is first shown in the HMI/SCADA run time display. |
|
While Mouse Over |
pointer is over the element. |
Note: To expand the available space for your script, you can use the Expansion buttons to hide the script header and/or the Animation list.
To configure an element with an action script animation
-
Select the element.
-
On the Special menu, click Edit Animations. The Edit Animations dialog box appears.
-
Click the Add icon and select Action Scripts. The action scripts animation is added to the Animation list and the Action Scripts configuration panel appears.
-
From the Trigger type list, select the trigger that activates the action script at run time.
-
If you select a trigger type that starts with "While", type how frequently the action script is executed at run time in the Every box.
-
If you select the trigger types On Mouse Over or On Mouse Leave, the Every box label shows After instead. Type a value in the After box. This value specifies after what delay the action script is executed at run time.
-
Specify a trigger type that involves pressing a key is run by typing a key or key combination. In the Shortcut area. Select a shortcut key in the Key list. Select Ctrl and/or Shift to combine the shortcut key with the Ctrl key and/or Shift key.
-
Create your script in the action script window.
-
Click OK.
Related Topics
Configuring Common Types of Animations
Configuring an Action Script Animation with a "Mouse-Down" Event Trigger