EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 857

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...
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