Play PowerScript function
Description
Starts playing an animation (an AVI clip).
Controls
Animation controls
Syntax
1 |
<span>animationname</span>.<span>Play</span> ( <span>from</span>, <span>to</span>, <span>replay</span> ) |
Argument |
Description |
---|---|
animationname |
The name of the animation control displaying |
from |
A long value in the range 0 to 65,535 |
to |
A long value in the range -1 to 65,535 |
replay |
A long value in the range -1 to 65,535 |
Return Values
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 |
integer li_return<br>li_return = am_1.<span>Play</span>(0, -1, -1) |