Text
291
Modifying strings with Lingo
As time passes or other conditions change, you might want to update and change text. For
example, you might want to frequently update a text sprite that displays the user’s name or a
description of a musical selection that the user is currently streaming from a website. See
individual entries in the Lingo Dictionary.
•
To set the entire content of a text or field cast member, set the
text
cast member property to a
new chunk of text. The chunk can be a string or another text cast member.
•
To combine character strings, use the
&
and
&&
operators. The
&
operator attaches the second
string to the end of the first string. The
&&
operator includes a space between two strings when
they are combined.
•
To insert a string of characters into another string, use the
put...after
,
put...into
, or
put...before
command. The
put...before
command places the string at the beginning of
another string. The
put...into
command replaces a specified chunk expression with another
chunk expression. The
put...after
command places the string at the end of another string.
•
To delete a chunk expression from a string of text, use the
delete
command.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...