memorySize
857
The following handler uses the
mouseMember
function with the sprite.member property to find if
the mouse is over a particular sprite:
-- Lingo syntax
on exitFrame
mm = _mouse.mouseMember
target = sprite(1).member
if (target = mm) then
put("Above the hotspot.")
_movie.go(_movie.frame)
end if
end
// JavaScript syntax
function exitFrame() {
var mm = _mouse.mouseMember;
var target = sprite(1).member;
if (target = mm) {
put("Above the hotspot.");
_movie.go(_movie.frame);
}
}
See also
lineSize
,
mouseMember
,
Sprite
,
spriteNum
memorySize
Usage
the memorySize
Description
System property; returns the total amount of memory allocated to the program, whether in use or
free memory. This property is useful for checking minimum memory requirements. The value is
given in bytes.
In Windows, the value is the total physical memory available; on the Macintosh, the value is the
entire partition assigned to the application.
Example
This statement checks whether the computer allocates less than 500K of memory and, if it does,
displays an alert:
if the memorySize < 500 * 1024 then alert "There is not enough memory to run
this movie."
See also
freeBlock()
,
freeBytes()
,
ramNeeded()
,
size
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...