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
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...