startFrame

Usage

-- Lingo syntax
spriteObjRef.startFrame

// JavaScript syntax
spriteObjRef.startFrame;

Description

Sprite property; returns the frame number of the starting frame of a sprite span. Read-only.

This property is useful in determining the span in the Score that a particular sprite covers. It is available only in a frame that contains the sprite, and cannot be applied to sprites in different frames of the movie.

Example

This statement displays the starting frame of the sprite in channel 5 in the Message window:

-- Lingo syntax
put(sprite(5).startFrame)

// JavaScript syntax
put(sprite(5).startFrame);

See also

endFrame, Sprite