list()
383
Example
This statement measures the distance, in pixels, from the second line of the field cast member
Today’s News to the top of the field cast member and assigns the result to the variable
startOfString
:
--Lingo syntax
startOfString = member("Today's News").linePosToLocV(2)
// JavaScript syntax
var startOfString = member("Today's News").linePosToLocV(2);
linkAs()
Usage
castMember
.linkAs()
Description
Script cast member function; opens a save dialog box, allowing you to save the contents of the
script to an external file. The script cast member is then linked to that file.
Linked scripts are imported into the movie when you save it as a projector or a movie with
Shockwave content. This differs from other linked media, which remains external to the movie
unless you explicitly import it.
Parameters
None.
Example
These statements, typed in the Message window, opens a Save dialog box to save the script
Random Motion as an external file:
member("Random Motion").linkAs()
importFileInto, linked
list()
Usage
-- Lingo syntax
list()
[]
list(
stringValue1
,
stringValue2
,
...
)
[
stringValue1
,
stringValue2
,
...
]
// JavaScript syntax
list();
list(
stringValue1
,
stringValue2
,
...
);
Description
Top level function; creates a linear list.
When creating a list using the syntax
list()
, with or without parameters, the index of list values
begins with 1.
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...