endFrame

Usage

-- Lingo syntax
spriteObjRef.endFrame

// JavaScript syntax
spriteObjRef.endFrame;

Description

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

This property is useful in determining the span in the Score of a particular sprite.

This property is available only in a frame that contains the sprite. It cannot be applied to sprites in different frames of the movie.

Example

This statement output reports the ending frame of the sprite in channel 5 in the Message window:

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

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

See also

Sprite, startFrame