EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 507

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
restart() 507
resolveB
Usage
collisionData.resolveB(bResolve)
Description
3D collision method; overrides the collision behavior set by the collision.resolve property for
collisionData.modelB. Call this function only if you wish to override the behavior set for
modelB using
collision.resolve.
Parameters
bResolve
Required. Specifies whether the collision for modelB is resolved. If bResolve is TRUE,
then the collision for the modelB is resolved; if
bResolve is FALSE the collision for modelB is
not resolved.
See also
collisionData, resolve, registerScript(), modelB, setCollisionCallback()
restart()
Usage
-- Lingo syntax
_system.restart()
// JavaScript syntax
_system.restart();
Description
System method; closes all open applications and restarts the computer.
Parameters
None.
Example
This statement restarts the computer when the user presses Command+R (Macintosh) or
Control+R (Windows):
-- Lingo syntax
if (_key.key = "r" and _key.commandDown) then
_system.restart()
end if
// JavaScript syntax
if (_key.key = "r" && _key.commandDown) {
_system.restart();
}
See also
System