MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 532

Director scripting reference
Table of Contents

Advertisement

setNewLineConversion()
Usage
-- Lingo syntax
fileioObjRef.setNewLineConversion(intOnOff)
// JavaScript syntax
fileioObjRef.setNewLineConversion(intOnOff)
Description
Fileio method (Macintosh only); Specifies whether automatic conversion of new line characters is
on or off.
Parameters
Required. An integer that specifies whether automatic conversion is on or off. Valid
intOnOff
values include 0 (off ) or 1 (on).
See also
Fileio
setPixel()
Usage
-- Lingo syntax
imageObjRef.setPixel(x, y, colorObjOrIntValue)
imageObjRef.setPixel(point(x, y), colorObjOrIntValue)
// JavaScript syntax
imageObjRef.setPixel(x, y, colorObjOrIntValue);
imageObjRef.setPixel(point(x, y), colorObjOrIntValue);
Description
Image method. Sets the color value of the pixel at a specified point in a given image.
If setting many pixels to the color of another pixel with
as integers.
For best performance with color objects, use an indexed color object with 8-bit or lower images,
and use an RGB color object with 16-bit or higher images.
This method returns FALSE if the specified pixel falls outside the specified image.
To see an example of this method used in a completed movie, see the Imaging movie in the
Learning/Lingo folder inside the Director application folder.
Parameters
Required if specifying a pixel using
x
coordinate of the pixel.
Required if specifying a pixel using
y
coordinate of the pixel.
Required if specifying a pixel using a point. A point that specifies the pixel.
point(x, y)
532
Chapter 12: Methods
getPixel()
and
coordinates. An integer that specifies the
x
y
and
coordinates. An integer that specifies the
x
y
, it is faster to set them
x
y

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