turn_on() - turn_off()
img_name - the name of an image/AnimatedImage()
in an HTML document
These functions are intended to be called when onMouseOver and onMouseOut events occur within a Hyperlink although they can be called using any other event handler (onLoad, onClick). The function turn_on() will start the animation running forward up to the last frame in the animation. Once turn_on() is called the animation will ALWAYS run until the last frame is reached even if turn_off() is called before that happens. The function turn_off() will start an animation running backwards from the last frame until the first frame (frame 0) is reached. If the animation is not at the last frame when turn_off() is called then the animation is marked for "close_required" and when it reaches the last frame the animation will start running back through the frames. The following example shows a vertical navbar of three animated images that animate when the mouse moves over the image.
The following example defines multiple animated images using just 1 animation.