How Can I make an animation loop?
kevin at runrev.com
Fri Dec 14 10:41:01 EST 2001
On 1/12/01 4:44 am, Carls <panch_power at hotmail.com> wrote:
> How can I make an animation made using the animation manager loop. I use the
> revPlayAnimation function on preloadstack handler. I tried to do it using
> the send option in the animation manager but it doesn't work.
Select the last key frame and open the triangle at the bottom of the
palette, then switch to the "Messages Sent to Object" tab, then choose
"Message Sent On This Key Frame" from the menu and type in a message, you
can define a handler in the object that causes the animation to go back to
the start and play again. Its tempting just to put:
In that box, but if you do you will get an infinite loop that can only be
exited from with command-period and consequent error. Instead, you should
include that line in the message handler you place in the object, but also
include a way for the user to exit, such as checking if a key on the
keyboard on the mouse is down.
Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707.
More information about the Use-livecode