main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplicationname="TextGraphic_lineThrough_test"
- xmlns="http://ns.adobe.com/mxml/2009">
- <layout>
- <BasicLayout/>
- </layout>
- <Form>
- <FormItemlabel="lineThrough:">
- <FxCheckBoxid="fxCheckBox"
- selected="true"/>
- </FormItem>
- </Form>
- <TextGraphicid="textGraphic"
- fontSize="24"
- lineThrough="{fxCheckBox.selected}"
- horizontalCenter="0"
- verticalCenter="0">
- <text>
- <![CDATA[The quick brown fox jumped over the lazy dog.]]>
- </text>
- </TextGraphic>
- </FxApplication>
本文介绍了一个使用 Flex 实现的简单示例,通过勾选复选框来切换文本的贯穿线效果。此示例利用 TextGraphic 组件,并将 fxCheckBox 的 selected 属性绑定到 lineThrough 属性上。
633

被折叠的 条评论
为什么被折叠?



