引用:// 引用帮助timeline.getSelectedLayers()AvailabilityFlash MX 2004.ParametersNone.ReturnsAn array of the zero-based index values of the selected layers.DescriptionMethod; gets the zero-based index values of the currently selected layers.ExampleThe following example displays 1,0 in the Output panel:fl.getDocumentDOM().getTimeline().setSelectedLayers(0);fl.getDocumentDOM().getTimeline().setSelectedLayers(1, false);var layerArray = fl.getDocumentDOM().getTimeline().getSelectedLayers();fl.trace(layerArray);