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
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
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 into a new image object using the
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
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;
idleReadChunkSize
property immediately changes the contents of the member.
image
is 32K.
property, it is faster to copy the item's
image
duplicate()
method.
duplicate()
method, apply your changes to
image (Image)
807
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