User Guide

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 members
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 items
image property, it is faster to copy the items
image property into a new image object using the
duplicate() method, apply your changes to
the new image object, and then set the original items 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;