Flex(gumbo)中如何通过lineThrough样式设置删除线TextGraphic的例子
By Minidxer | May 2, 2009
接下来的例子演示了Flex(gumbo)中如何通过lineThrough样式,设置删除线TextGraphic。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplication name="TextGraphic_lineThrough_test"
- xmlns="http://ns.adobe.com/mxml/2009">
- <layout>
- <BasicLayout />
- </layout>
- <Form>
- <FormItem label="lineThrough:">
- <FxCheckBox id="fxCheckBox"
- selected="true" />
- </FormItem>
- </Form>
- <TextGraphic id="textGraphic"
- fontSize="24"
- lineThrough="{fxCheckBox.selected}"
- horizontalCenter="0"
- verticalCenter="0">
- <text>
- <![CDATA[The quick brown fox jumped over the lazy dog.]]>
- </text>
- </TextGraphic>
- </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
TextGraphic |
No Comments » |
Tags: Gumbo, lineThrough, TextGraphic