Lingo Dictionary > G-K > interval

 

interval

Syntax

member(whichCursorCastMember).interval
the interval of member whichCursorCastMember

Description

Cursor cast member property; specifies the interval, in milliseconds (ms), between each frame of the animated color cursor cast member whichCursorCastMember. The default interval is 100 ms.

The cursor interval is independent of the frame rate set for the movie using the tempo channel or the puppetTempo Lingo command.

This property can be tested and set.

Example

In this sprite script, when the animated color cursor stored in the cast member named Butterfly enters the sprite, the interval is set to 50 ms to speed up the animation. When the cursor leaves the sprite, the interval is reset to 100 ms to slow down the animation.

on mouseEnter
	member("Butterfly").interval = 50 
end
on mouseLeave
	member("Butterfly").interval = 100
end