// 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
member property can have integer values.
frameCount
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
784
Chapter 14: Properties
property is 0.
frameLabel
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers