Error getting tags :
error 404Error getting tags :
error 404 currentTimeChanged | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
currentTimeChanged
Basics
Expander triangle
Type
Message
Syntax
currentTimeChanged newTime
Introduced
1.0
Changed
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to a player when the user switches to another frame.
Examples

on currentTimeChanged theInterval -- display the time in a field
put theInterval into field "Time Code"
end currentTimeChanged

Additional Comments
Expander triangle

Handle the currentTimeChanged message if you want to do something when the user changes the current time in a player.

Parameters:

The newTime is the number of the interval where the player is after the change.

Comments:

The user can change the current time by clicking in the controller bar or by using the arrow keys when the player is the active (focused) control.

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.

The actual process of changing the player's current time is not triggered by the currentTimeChanged message, so trapping the message and not allowing it to pass does not prevent the user from changing the player's current time manually.

Changes to Revolution:

The newTime parameter was introduced in version 2.0. In previous versions, the currentTimeChanged message did not have a parameter.

User Comments
Expander triangle