User Guide
Chapter 3126
The expressions must be integers that specify a character or range of characters in the chunk.
Characters include letters, numbers, punctuation marks, spaces, and control characters such as
Tab and Return.
You can test but not set the
char...of keyword. Use the put...into command to modify the
characters in a string.
Examples
This statement displays the first character of the string $9.00:
put ("$9.00").char[1..1]
-- "$"
This statement displays the entire string $9.00:
put ("$9.00").char[1..5]
-- "$9.00"
This statement changes the first five characters of the second word in the third line of a text
cast member:
member("quiz").line[3].word[2].char[1..5] = "?????"
See also
mouseMember, mouseItem, mouseLine, mouseWord
characterSet
Syntax
member(whichFontMember).characterSet
the characterSet of member whichFontMember
Description
Font cast member property; returns a string containing the characters included for import when
the cast member was created. If all characters in the original font were included, the result is an
empty string.
Example
This statement displays the characters included when cast member 11 was created. The characters
included during import were numerals and Roman characters.
put member(11).characterSet
-- "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
See also
recordFont, bitmapSizes, originalFont
charPosToLoc()
Syntax
member(whichCastMember).charPosToLoc(nthCharacter)
charPosToLoc(member whichCastMember, nthCharacter)
Description
Field function; returns the point in the entire field cast member (not just the part that appears on
the Stage) that is closest to the character specified by
nthCharacter. This is useful for
determining the location of individual characters.