User Guide
showProps() 541
showLocals()
Usage
-- Lingo syntax
showLocals()
Description
Top level function (Lingo only); displays all local variables in the Message window. This
command is useful only within handlers or parent scripts that contain local variables to display.
All variables used in the Message window are automatically global.
Local variables in a handler are no longer available after the handler executes. Inserting
the statement
showLocals() in a handler displays all the local variables in that handler in the
Message window.
This command is useful for debugging scripts.
Parameters
None.
See also
clearGlobals(), global, showGlobals()
showProps()
Usage
-- Lingo syntax
memberOrSpriteObjRef.showProps()
// JavaScript syntax
memberOrSpriteObjRef.showProps();
Description
Command; displays a list of the current property settings of a Flash movie, Vector member, or
currently playing sound in the Message window. This command is useful for authoring only; it
does not work in projectors or in movies with Shockwave content.
Parameters
None.
Example
This handler accepts the name of a cast as a parameter, searches that cast for Flash movie cast
members, and displays the cast member name, number, and properties in the Message window:
-- Lingo syntax
on ShowCastProperties(whichCast)
repeat with i = 1 to castLib(whichCast).member.count
castType = member(i, whichCast).type
if (castType = #flash) OR (castType = #vectorShape) then
put castType&&"cast member" && i & ":" && member(i, whichCast).name
put RETURN
member(i ,whichCast).showProps()
end if
end repeat