摘要: trace(CheckTxtLength( "123qw中国"))function CheckTxtLength(str:String):int{var byteArray:ByteArray = new ByteArray();byteArray.writeMultiByte(str, "GBK");return byteArray.length;} 阅读全文
posted @ 2012-07-06 11:43 autumndawn 阅读(130) 评论(0) 推荐(0) 编辑
摘要: _sStyle = new StyleSheet(); var obj:Object = {workBreak:"break-all", wordWrap:'true', leftmargin:'0', blockindent:'100', indent:'0', align:'left'}; _sStyle.setStyle("textformat", obj); _sStyle.setStyle("p", obj); obj = {textDecora 阅读全文
posted @ 2012-07-06 11:41 autumndawn 阅读(165) 评论(0) 推荐(0) 编辑