onseek Event

Sprite Control

Occurs after a Seek method has been invoked and the playback position has changed.

Syntax

VBScriptSub spriteObj_onseek( newtime )
<!--script-->
End Sub
JScript<SCRIPT LANGUAGE="JavaScript" FOR=spriteObj EVENT=onseek( newtime )>
<!--script-->
</SCRIPT>

Possible Values

newtime
Variable that contains the time value of the new playback position, in seconds.milliseconds (0.000).

Example

You can use onseek to set up conditional behavior, as shown in the following example.

    Sub sprite1_onseek(newtime)
        If newtime=2.000 then
            sprite1.stop
        Else
            sprite1.play
        End If
    End Sub

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.