摘要: /** * 组件看不到?请使用本函数检测 * @param target * */ public static function componentsNotShow(target:DisplayObject):void { // 检查基本属性 if(!target.stage) {trace("没添加到舞台"); return;} if(!target.visible) {trace("visible 是 false"); return;} if(target.scaleX == 0) {trace("scaleX 为 0"); re 阅读全文
posted @ 2014-02-11 15:06 chinayfhuang 阅读(259) 评论(0) 推荐(0)
摘要: public static function deleteChinese(str:String):String{ var reg:RegExp = /[\u4e00-\u9fa5]/g; var newStr:String = str.replace(reg, ""); return newStr;} 阅读全文
posted @ 2014-02-11 15:02 chinayfhuang 阅读(470) 评论(0) 推荐(0)