ReadyStateChange EventReadyStateChange Event*
*Contents  *Index  *Topic Contents
*Previous Topic: PositionChange Event
*Next Topic: StateChange Event

ReadyStateChange Event

Indicates changes to the control's state of readiness.

Syntax

Private Sub object_ReadyStateChange(ByVal ReadyState As Long)

Parameters

objectObject expression that evaluates to an ActiveMovie Control.
ReadyStateCurrent state of readiness, after the change occurred.

Settings

Following are possible settings for the ReadyState parameter.
SettingValueDescription
amvUninitialized1The FileName property has not been initialized.
amvLoading0The ActiveMovie Control is asynchronously loading a file.
amvInteractive3The control loaded a file, and downloaded enough data to play the file, but has not yet received all data.
amvComplete4All data has been downloaded.

Remarks

When you change the FileName property, applications should check the control's state of readiness before attempting to call the Run method on the newly opened file. Applications should call the Run method only if the ReadyState parameter equals amvInteractive or amvComplete.


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