callbacks

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the callbacks of <player> to <messageList>
Associationsplayer
Summary

Specifies messages to be sent during playback of a movie.

Introduced1.0
OSmac, windows, linux
Platformsdesktop
Example
set the callbacks of player "Mist" to myCallbacks
set the callbacks of player "Do It!" to "2500,soundNotes"
Values
NameTypeDescription
Value

The callbacks of a player is a list of callbacks, one per line. Each callback consists of an interval number, a comma, and a message name. By default, the callbacks property of newly created players is set to empty.

RelatedKeyword: player
Property: timeScale, duration, currentTime, playRate
Message: currentTimeChanged
Command: send, play
Object: player
Glossary: property, synchronize, message, callback, player
Description

Use the callbacks property to send callback messages to a player at certain points in the movie. This synchronizes the messages with the playback.

When an interval number is reached during playback, LiveCode sends the corresponding message to the player.

The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property.

Tagsmultimedia