User Guide

784 Chapter 14: Properties
// JavaScript syntax
_movie.go(_movie.frame - 1);
See also
go(), Movie
frameCount
Usage
-- Lingo syntax
memberObjRef.frameCount
// JavaScript syntax
memberObjRef.frameCount;
Description
Flash cast member property; indicates the number of frames in the Flash movie cast member. The
frameCount member property can have integer values.
This property can be tested but not set.
Example
This sprite script displays, in the Message window, the channel number and the number of frames
in a Flash movie:
-- Lingo syntax
property spriteNum
on beginSprite me
put(""The Flash movie in channel"" && spriteNum && has"" &&
sprite(spriteNum).member.frameCount && ""frames.""
end
// JavaScript syntax
function beginSprite() {
trace("The Flash movie in channel " + (this.spriteNum) + " has " +
sprite(this.spriteNum).member.frameCount + " frames.");
}
frameLabel
Usage
-- Lingo syntax
_movie.frameLabel
// JavaScript syntax
_movie.frameLabel;
Description
Movie property; identifies the label assigned to the current frame. Read/write during a Score
recording session only.
When the current frame has no label, the value of the
frameLabel property is 0.