centerStage

Usage

-- Lingo syntax
_movie.centerStage

// JavaScript syntax
_movie.centerStage;

Description

Movie property; determines whether the Stage is centered on the monitor when the movie is loaded (TRUE, default) or not centered (FALSE). Read/write.

Place the statement that includes this property in the movie that precedes the movie you want it to affect.

This property is useful for checking the Stage location before a movie plays from a projector.

Note: Be aware that behavior while playing back in a projector differs between Windows and Macintosh systems. Settings selected during creation of the projector may override this property.

Example

This statement sends the movie to a specific frame if the Stage is not centered:

-- Lingo syntax
if (_movie.centerStage = FALSE) then
   _movie.go("Off Center")
end if

// JavaScript syntax
if (_movie.centerStage == false) {
   _movie.go("Off Center");
}

This statement changes the centerStage property to the opposite of its current value:

-- Lingo syntax
_movie.centerStage = not(_movie.centerStage)

// JavaScript syntax
_movie.centerStage = !(_movie.centerStage)

See also

fixStageSize, Movie


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_update_en/09_pr111.htm