User Guide

354 Chapter 12: Methods
group()
Usage
member(whichCastmember).group(whichGroup)
member(whichCastmember).group[index]
Description
3D element; a node in the 3D world that has a name, transform, parent, and children, but no
other properties.
Every 3D cast member has a default group named World that cannot be deleted. The parent
hierarchy of all models, lights, cameras, and groups that exist in the 3D world terminates in
group("world").
Example
This statement shows that the fourth group of the cast member newAlien is the group Direct01:
put member("newAlien").group[4]
-- group("Direct01")
See also
newGroup, deleteGroup, child (3D), parent
halt()
Usage
-- Lingo syntax
_movie.halt()
// JavaScript syntax
_movie.halt();
Description
Movie method; exits the current handler and any handler that called it and stops the movie
during authoring or quits the projector during runtime from a projector.
Parameters
None.
Example
This statement checks whether the amount of free memory is less than 50K and, if it is, exits all
handlers that called it and then stops the movie:
-- Lingo syntax
if (_system.freeBytes < (50*1024)) then
_movie.halt()
end if
// JavaScript syntax
if (_system.freeBytes < (50*1024)) {
_movie.halt();
}
See also
Movie