_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 = {textDecoration:'underline'}; _sStyle.setStyle("a:hover", obj);//当鼠标移动到链接上时的样式
然后设置 textfield 的 styleSheet属性。