StateChange EventStateChange Event*
*



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

objectObject expression that evaluates to an ActiveMovie Control.
oldStatePrevious state, before the change occurred.
newStateCurrent state, after the change occurred.

Settings

Following are possible settings for the oldState or newState parameters.
SettingValueDescription
amvStopped0The player is stopped.
amvPaused1The player is paused.
amvRunning2The 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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.