EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 808

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.