以下、サンプルコード
<object id="Player" width="320" height="240"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="URL" value="clip.asx">
<param name="uiMode" value="full">
</object>
<script for="Player" event="playStateChange(NewState)">
Msg.innerText = NewState;
</script>