User Guide
Lingo Dictionary 59
activeCastLib
Syntax
the activeCastLib
Description
System property; indicates which cast was most recently activated. The activeCastLib property’s
value is the cast’s number.
The
activeCastLib property is useful when working with the selection castLib property.
Use it to determine which cast the selection refers to.
This property can be tested but not set.
Example
These statements assign the selected cast members in the most recently selected cast to the
variable
selectedMembers:
castLibOfInterest = the activeCastLib
selectedMembers = castLib(castLibOfInterest).selection
An equivalent way to write this is:
selectedMembers = castLib(the activeCastLib).selection
activeWindow
Syntax
the activeWindow
Description
Movie property; indicates which movie window is currently active. For the main movie,
activeWindow is the Stage. For a movie in a window, activeWindow is the movie in the window.
Example
This example places the word Active in the title bar of the clicked window and places the word
Inactive in the title bar of all other open windows:
on activateWindow
set clickedWindow = (the windowlist).getPos(the activeWindow)
set windowCount = (the windowlist).count
repeat with x = 1 to windowCount
if x = clickedWindow then
(the activeWindow).title = "Active"
else
(the windowlist[x]).title = "Inactive"
end if
end repeat
end
See also
activeCastLib, windowList
actorList
Syntax
the actorList