EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 542

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
542 Chapter 12: Methods
end
// JavaScript syntax
function ShowCastProperties(whichCast) {
i = 1;
while( i < (castLib(whichCast).member.count) +1 ) {
castType = member(i, whichCast).type;
if ((castType = "flash") || (castType = "vectorShape")) {
trace (castType + " cast member " + i + ": " + member(i,
whichCast).name) + \n;
member(i ,whichCast).showProps();
i++;
}
}
}
See also
queue(), setPlayList()
showGlobals()
Usage
-- Lingo syntax
_global.showGlobals()
// JavaScript syntax
_global.showGlobals();
Parameters
None.
Description
Global method; displays all global variables in the Message window.
This method is useful for debugging scripts.
Example
This statement displays all global variables in the Message window:
-- Lingo syntax
on mouseDown
_global.showGlobals()
end
// JavaScript syntax
function mouseDown() {
_global.showGlobals();
}
See also
Global