When projection is
from the camera, and the
into the sprite (which determines how much of the world you see). The orthographic projection
width is determined by the aspect ratio of the camera's
Example
This statement sets the projection property of the camera of sprite 5 to
sprite(5).camera.projection = #orthographic
See also
fieldOfView
(3D), orthoHeight,
purgePriority
Usage
-- Lingo syntax
memberObjRef.purgePriority
// JavaScript syntax
memberObjRef.purgePriority;
Description
Member property; specifies the purge priority of a cast member. Read/write.
A cast member's purge priorities determine the priority that Director follows to choose which cast
members to delete from memory when memory is full. The higher the purge priority, the more
likely that the cast member will be deleted. The following
•
0—Never
•
1—Last
•
2—Next
•
3—Normal (default)
The Normal setting lets Director purge cast members from memory at random. The Next, Last,
and Never settings allow some control over purging, but Last or Never may cause your movie to
run out of memory if several cast members are set to these values.
Setting
purgePriority
movie's cast library exceeds the available memory. As a general rule, you can minimize pauses
while the movie loads cast members and reduce the number of times Director reloads a cast
member by assigning a low purge priority to cast members that are used frequently in the course
of the movie.
Example
This statement sets the purge priority of cast member Background to 3, which makes it one of the
first cast members to be purged when memory is needed:
-- Lingo syntax
member("Background").purgePriority = 3
// JavaScript syntax
member("Background").purgePriority = 3;
, the apparent size of objects does not depend on distance
#orthographic
property specifies how many world units fit vertically
orthoHeight
fieldOfView (3D)
for cast members is useful for managing memory when the size of the
property.
rect
#orthographic
settings are available:
purgePriority
:
purgePriority
939
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers