User Guide

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.