var_changed

Description

This event is fired every time a variable changes its value. The actual event that fires depends on the name of the variable. For a variable named 'var1', the event 'var_var1_changed' is fired.

This is useful for responding immediately to changes that the user makes. A named listbox updates a variable every time the selection changes. Use this event to respond to that event.

See also

listbox

Example

script on_status_changed is
  open_movie ('status_frame', 'status_movie', status . '.mov')
end