339
leftIndent
Syntax
chunkExpression.
leftIndent
Description
Text cast member property; contains the number of pixels the left margin of
chunkExpression
is
offset from the left side of the text cast member.
The value is an integer greater than or equal to 0.
This property can be tested and set.
Example
This line indents the first line of text cast member “theStory” by ten pixels:
member("theStory").line[1].leftIndent = 10
See also
firstIndent
,
rightIndent
length()
Syntax
string.length
length(
string
)
Description
Function; returns the number of characters in the string specified by
string
, including spaces
and control characters such as TAB and RETURN.
Examples
This statement displays the number of characters in the string “Macro”&“media”:
put ("Macro" & "media").length
-- 10
This statement checks whether the content of the field cast member Filename has more than 31
characters and if it does, displays an alert:
if member("Filename").text.length > 31 then
alert "That filename is too long."
end if
See also
chars()
,
offset() (string function)
length (3D)
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).length
vectorReference
.length
Description
3D
#box
model resource,
#plane
model resource, and vector property; indicates the length in
world units of the box or plane.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...