User Guide
selection (text cast member property) 983
// JavaScript syntax
function mouseUp() {
var mySelectionObject = sprite(this.spriteNum).member.selectedText;
trace(mySelectionObject.text);
trace(mySelectionObject.font);
trace(mySelectionObject.fontSize);
trace(mySelectionObject.fontStyle);
}
selection
Usage
-- Lingo syntax
castObjRef.selection
// JavaScript syntax
castObjRef.selection;
Description
Cast library property; returns the cast members that are selected in a given Cast window. Read/
write.
Example
This statement selects cast members 1 through 10 in castLib 1:
-- Lingo syntax
castLib(1).selection = [[1, 10]]
// JavaScript syntax
castLib(1).selection = list( list(1, 10) );
This statement selects cast members 1 through 10, and 30 through 40, in castLib 1:
-- Lingo syntax
castLib(1).selection = [[1, 10], [30, 40]]
// JavaScript syntax
castLib(1).selection = list( list(1, 10), list(30, 40) );
See also
Cast Library
selection (text cast member property)
Usage
member(whichTextMember).selection
Description
Text cast member property; returns a list of the first and last character selected in the text
cast member.
This property can be tested and set.