火花标签的直通式样
答
有一种叫lineThrough
的风格。这是一个Boolean
,所以只需将其设置为true
。
在spark.components.Label.as
有一个include "../styles/metadata/BasicInheritingTextStyles.as"
,并且文件包含以下的这段定义lineThrough
/**
* If true, applies strikethrough, a line drawn through the middle of the text.
*
* <p><b>For the Spark theme, see
* flashx.textLayout.formats.ITextLayoutFormat.lineThrough</b></p>
*
* <p><b>For the Mobile theme, this is not supported.</b></p>
*
* @see flashx.textLayout.formats.ITextLayoutFormat#lineThrough
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
*/
[Style(name="lineThrough", type="Boolean", inherit="yes")]
不要以为你可以。您必须使用支持html格式的组件。 – RIAstar 2012-02-17 12:46:03