FrameSeek Method

Sprite Control

Sets the sprite playback to a specific frame.

Syntax

ScriptingspriteObj.FrameSeek( frame )

Parameters

frame
New playback frame for the sprite.

Example

The following example seeks the sprite named SpriteHorse in response to an onclick event.

SUB SpriteHorse_onclick
    SpriteHorse.FrameSeek(5)
END SUB

Mouse over the sprite to see it change. Right click inside the frame and choose View Source to see the source code.


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