Jump to content

Programming Help:Stop Method

From Agentpedia, the Microsoft Agent encyclopedia
Stop Method
Stops the animation for the specified character.
Introduced in version:Microsoft Agent 1.5
Removed in version: Still in use
Allowed values:Request (Optional)
Default value:N/A


Parts

Part Description
Request Optional. Specifies a specific animation call.

Examples

Inline example (VB.NET)
Peedy.Stop()
Peedy.Play("Restpose")
Advanced example (VB.NET)
Peedy.Speak("What would you like to search?")
Peedy.Play("Searching")

' on a separate area of the form:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Peedy.Stop() 
    Peedy.Speak("You got me out that animation! Thank you!") 
End Sub

Remarks

The request parameter only works if you create a variable assign the animation request you want to stop. Otherwise, the Microsoft Agent Server stops all animations for the character. unless the character is currently playing its hiding or showing animation.