image (Image)
807
Description
Movie property; determines the maximum number of bytes that Director can load when it
attempts to load cast members from the load queue. Read/write.
The default value of
idleReadChunkSize
is 32K.
Example
This statement specifies that 500K is the maximum number of bytes that Director can load in
one attempt at loading cast members in the load queue:
-- Lingo syntax
_movie.idleReadChunkSize = (500 * 1024)
// JavaScript syntax
_movie.idleReadChunkSize = (500 * 1024);
See also
on idle
,
Movie
image (Image)
Usage
-- Lingo syntax
imageObjRef
.image
// JavaScript syntax
imageObjRef
.image;
Description
Image property. Refers to the image object of a bitmap or text cast member, of the Stage, or of a
window. Read/write for a cast member’s image, read-only for an image of the Stage or a window.
Setting a cast member’s
image
property immediately changes the contents of the member.
However, when getting the image of a member or window, Director creates a reference to the
image of the specified member or window. If you make changes to the windows, the contents of
the cast member or window change immediately.
If you plan to make a lot of changes to an item’s
image
property, it is faster to copy the item’s
image property into a new image object using the
duplicate()
method, apply your changes to
the new image object, and then set the original item’s image to the new image object. For
nonbitmap members, it is always faster to use the
duplicate()
method.
Example
This statement puts the image of cast member originalFlower into cast member newFlower:
-- Lingo syntax
member("newFlower").image = member("originalFlower").image
// JavaScript syntax
member("newFlower").image = member("originalFlower").image;
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...