These statements place a reference to the image of the stage into the variable
put that image into cast member flower:
-- Lingo syntax
myImage = _movie.stage.image
member("flower").image = myImage
// JavaScript syntax
var myImage = _movie.stage.image;
member("flower").image = myImage;
See also
copyPixels(), draw(),
image (RealMedia)
Usage
-- Lingo syntax
memberOrSpriteObjRef.image
// JavaScript syntax
memberOrSpriteObjRef.image;
Description
RealMedia sprite or cast member property; returns a Lingo image object containing the current
frame of the RealMedia video stream. You can use this property to map RealVideo onto a 3D
model (see the example below).
Example
This statement copies the current frame of the RealMedia cast member Real to the bitmap cast
member Still:
-- Lingo syntax
member("Still").image = member("Real").image
// JavaScript syntax
member("Still").image = member("Real").image;
image (Window)
Usage
-- Lingo syntax
windowObjRef.image
// JavaScript syntax
windowObjRef.image;
Description
Window property; refers to the image object of a window. Read-only.
When you get the image of a window, Director creates a reference to the image of the specified
window. If you make changes to the image, the contents of the window change immediately.
808
Chapter 14: Properties
duplicate()
(Image), fill(), image(),
and then
myImage
setPixel()
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