Listeners fire when a specific event occurs in a State Machine. Listener Action Scripts let you run custom logic in response to those events. Use Listener Action Scripts when you need to perform side effects—such as updating view model values, responding to pointer input, or triggering external behavior—without changing state.Documentation Index
Fetch the complete documentation index at: https://rive-accessibility.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Creating a Listener Action Script
Create a new script and select Listener Action Script as the type.Anatomy of a Listener Action
Adding your Listener Action

Script Inputs
Inputs let you add parameters to a listener action without changing script logic—making the same script reusable across different listeners. For more information on adding inputs to your scripts, see Script Inputs.Inputs can control scripts, but scripts can’t change the value of inputs.If you need to control a view model property from your script, access the Main View model through context or View Model Inputs.
Setting an Input
To set the value of an input, select the Properties icon next to the listener script.
Data Binding an Input
Right-click your property and select Data Bind to bind your input to a view model property.