Contents Index Topic Contents | ||
Previous Topic: ReadyStateChange Event Next Topic: Timer Event |
StateChange Event
Indicates that the player state changed, such as from running to stopped.
Syntax
Private Sub object_StateChange(ByVal oldState As Long, ByVal newState As Long)Parameters
object Object expression that evaluates to an ActiveMovie Control. oldState Previous state, before the change occurred. newState Current state, after the change occurred. Settings
Following are possible settings for the oldState or newState parameters.
Setting Value Description amvStopped 0 The player is stopped. amvPaused 1 The player is paused. amvRunning 2 The player is playing the multimedia file. Remarks
The ActiveMovie Control raises the StateChange event when the player state changes, such as from stopped to running. The current player state appears in the CurrentState property. You can find the player state flags in the CurrentState property documentation.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.