Play
PowerScript function
Description
Starts playing an animation (an AVI clip).
Applies to
Animation controls
Syntax
|
1 |
animationname.Play ( from, to, replay ) |
|
Argument |
Description |
|---|---|
|
animationname |
The name of the animation control displaying the AVI |
|
from |
A long value in the range 0 to 65,535 indicating the frame |
|
to |
A long value in the range -1 to 65,535 indicating the |
|
replay |
A long value in the range -1 to 65,535 indicating the |
Return value
Integer. Returns 1 for success and -1 for failure.
Usage
Start plays an opened AVI file in an animation control. If you
specify a value for any argument that is not in the specified range, Start
does nothing and returns -1.
Examples
This example starts playing an AVI clip at the first frame, plays to
the last frame, and continues playing the clip indefinitely:
|
1 2 |
integer li_return li_return = am_1.Play(0, -1, -1) |
See also