492
Chapter 12: Methods
Parameters
None.
Example
This statement creates a child object called RedCar from the parent script CarParentScript
without initializing its properties:
RedCar = script("CarParentScript").rawNew()
This statement initializes the properties of the child object RedCar:
RedCar.new()
See also
new()
,
script()
readChar()
Usage
-- Lingo syntax
fileioObjRef
.readChar()
// JavaScript syntax
fileioObjRef
.readChar();
Description
Fileio method; Reads the next character of a file and returns it as an ASCII code value.
You must first open a file by calling
openFile()
before using
readChar()
to read a character.
Parameters
None.
See also
Fileio
,
openFile()
readFile()
Usage
-- Lingo syntax
fileioObjRef
.readFile()
// JavaScript syntax
fileioObjRef
.readFile();
Description
Fileio method; Reads from the current position to the end of a specified file, and returns the result
as a string.
You must first open a file by calling
openFile()
before using
readFile()
to read a file.
Parameters
None.
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...