writeChar()
591
worldSpaceToSpriteSpace
Usage
-- Lingo syntax
member(
whichCastmember
).camera(
whichCamera
).worldSpaceToSpriteSpace(
vector
)
// JavaScript syntax
member(
whichCastmember
).camera(
whichCamera
).worldSpaceToSpriteSpace(
vector
);
Description
3D command; returns the point within the camera’s rect at which a specified world-relative
position would appear. The position returned by this command is relative to the upper left corner
of the camera’s rect.
If the position specified is out of view of the camera, this command returns
void
.
Parameters
vector
Required. Specifies the world-relative position that would appear.
Example
This statement shows that the world origin, specified by vector (0, 0, 0), appears at point
(250,281) within the camera’s rect:
-- Lingo syntax
put sprite(5).camera.worldSpaceToSpriteSpace(vector(0, 0, 0))
-- point(250, 281)
// JavaScript syntax
put(sprite(5).camera.worldSpaceToSpriteSpace(vector(0,0,0)));
See also
spriteSpaceToWorldSpace
,
rect (camera)
writeChar()
Usage
-- Lingo syntax
fileioObjRef
.writeChar(
stringChar
)
// JavaScript syntax
fileioObjRef
.writeChar(
stringChar
)
Description
Fileio method; Writes a single specified ASCII character to a file.
You must first open a file by calling
openFile()
before using
writeChar()
to write a character.
Parameters
stringChar
Required. Specifies the ASCII character to write to the file.
See also
Fileio
Summary of Contents for DIRECTOR MX 2004
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...