808
Chapter 14: Properties
These statements place a reference to the image of the stage into the variable
myImage
and then
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()
,
duplicate() (Image)
,
fill()
,
image()
,
setPixel()
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.
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...