Configure an event
Set the target element
The target element is the element (or an element's ancestor) that initiates the event. For example, you might have a Tap Area component that you want the user to touch to trigger an animation. In this case, the Tap Area is the event target.
Set the target from the stage
- Right-click the element.
- Select Add event… from the pop-up menu. The event dialogue opens with the element already set as the target.
You can only select an element as an event target if the element has an ID attribute. If the element doesn't have an ID, you'll be prompted to add one.
Set the target using the Events panel
- Click the Add event button in the Events panel to add a new event.
- Select the target from the list of elements. Elements without IDs and elements nested at a different document level don't appear in the list.