onseek Event

Sequencer Control

Called after the Seek method is invoked against a sequencer that has completed changing the playback position. At this point, the specified script code is run.

Syntax

VBScriptSub sequencerObj_onseek ( actionsetname, newtime )
script
End Sub
JScript<SCRIPT LANGUAGE="javascript" FOR="sequencerObj" EVENT="onseek( actionsetname, newtime ) ">
<!--script-->
</SCRIPT>

Possible Values

actionsetname
Specific action set from which the Seek method was invoked.
newtime
New playback time to which the sequencer has been moved.

Remarks

You can use this event to determine where the sequencer playback has been moved and to set up conditional actions based on the sequencer's new position. However, you can't have an onseek event call a Seek method that seeks to a position within the same action set from which the onseek event originated.

Example

In the following example, actionsetname is a variable set to the name of the action set that playback was changed to through the Seek method. The example tests the actionsetname parameter passed and conditionally executes a script based on which action set the playback position has been changed to.

Sub Sequencername_onseek(actionsetname, time)
    If actionsetname="ActionSet1" then
        If time=10.000 then
            Call Seq("ActionSet2").Play
        Else
            Call Seq("ActionSet1").Play
        EndIf
    EndIf
End Sub

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