火花标签的直通式样

问题描述:

如何设置s:label的直通式样,如css text-decoration:line-through火花标签的直通式样

+0

不要以为你可以。您必须使用支持html格式的组件。 – RIAstar 2012-02-17 12:46:03

有一种叫lineThrough的风格。这是一个Boolean,所以只需将其设置为true


文档: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Label.html#style:lineThrough

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")]