218
Chapter 11: Keywords
This parent script handler declares
pMySpriteNum
a property to make it available:
-- script Elder
property pMyChannel
on new me, whichSprite
me.pMyChannel = whichSprite
return me
end
The original behavior script sets up the ancestor and passes the
spriteNum
property to
all behaviors:
property spriteNum
property ancestor
on beginSprite me
ancestor = new script("Elder", spriteNum)
end
See also
me
,
ancestor
,
spriteNum
put...after
Usage
-- Lingo syntax
put
expression
after
chunkExpression
Description
Command; evaluates a Lingo expression, converts the value to a string, and inserts the resulting
string after a specified chunk in a container, without replacing the container’s contents. (If
chunkExpression
specifies a nonexistent target chunk, the string value is inserted as appropriate
into the container.)
Chunk expressions refer to any character, word, item, or line in any container. Containers include
field cast members; text cast members; variables that hold strings; and specified characters, words,
items, lines, and ranges within containers.
Example
This statement adds the string “fox dog cat” after the contents of the field cast member Animal
List:
put("fox dog cat") after member("Animal List")
The same can be accomplished using this statement:
put "fox dog cat" after member("Animal List").line[1]
See also
char...of
,
item...of
,
line...of
,
paragraph
,
word...of
,
put...before
,
put...into
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...