📄 displayobjectutilities.as
字号:
package ascb.util {
import flash.display.*;
public class DisplayObjectUtilities {
// Remove all of the children in a container
public static function removeAllChildren( container:DisplayObjectContainer ):void {
// Because the numChildren value changes after every time we remove
// a child, save the original value so we can count correctly
var count:int = container.numChildren;
// Loop over the children in the container and remove them
for ( var i:int = 0; i < count; i++ ) {
container.removeChildAt( 0 );
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -