User Guide
Manuals
Brands
Macromedia Manuals
Other
FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
291
292
293
294
295
296
297
298
299
300
298
Chapter 3: Objects
Example
The following example obtains and shows the number of layers that the selected mo
vie clip in the
library con
tains:
var tl = fl.getDocumentDOM().library.getSelectedItems()[0].timeline;
alert(tl.layerCount);
1
...
...
296
297
298
299
300
...
...
386