MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 365

Director scripting reference
Table of Contents

Advertisement

When you create a new image object, the background color defaults to white
(color(255,255,255)), and the alpha channel is completely opaque (color(0,0,0)).
The alpha channel color for 100% transparency is white (color(255,255,255)); the alpha channel
color for 100% opaque is black (color(0,0,0)).
To see an example of
Lingo folder inside the Director application folder.
Parameters
Required. An integer that specifies the width of the new image.
intWidth
Required. An integer that specifies the height of the new image.
intHeight
Required. An integer that specifies the bit depth of the new image. Valid values are
intBitDepth
1, 2, 4, 8, 16, or 32.
Example
The following example creates an 8-bit image that is 200 pixels wide by 200 pixels high.
-- Lingo syntax
objImage = image(200, 200, 8)
// JavaScript syntax
var objImage = image(200, 200, 8);
The following example creates an image by referring to the image of the Stage.
-- Lingo syntax
objImage = _movie.stage.image
// JavaScript syntax
var objImage = _movie.stage.image;
See also
duplicate()
(Image), fill(),
importFileInto()
Usage
-- Lingo syntax
memberObjRef.importFileInto(fileOrUrlString)
// JavaScript syntax
memberObjRef.importFileInto(fileOrUrlString);
Description
Member method; replaces the content of a specified cast member with a specified file.
The
importFileInto()
When finishing or developing a movie, use it to embed external linked media so it can be
edited during the project.
When generating a Score from Lingo or JavaScript syntax during movie creation, use it to
assign content to new cast members.
used in a completed movie, see the Imaging movie in the Learning/
image()
image (Image)
method is useful in the following situations.
importFileInto()
365

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents