<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/10/24/creating-strikethrough-text-on-a-textgraphic-control-in-flex-gumbo/ -->
<FxApplication name="TextGraphic_lineThrough_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        initialize="init();">
    <layout>
        <BasicLayout />
    </layout>

    <Script>
        <![CDATA[
            import mx.components.FxCheckBox;
            import mx.containers.Form;
            import mx.containers.FormItem;
            import mx.graphics.TextGraphic;

            private var fxCheckBox:FxCheckBox;
            private var textGraphic:TextGraphic;

            private function init():void {
                fxCheckBox = new FxCheckBox();
                fxCheckBox.selected = false;
                fxCheckBox.addEventListener(Event.CHANGE, fxCheckBox_change);

                var formItem:FormItem = new FormItem();
                formItem.label = "lineThrough:";
                formItem.addChild(fxCheckBox);

                var form:Form = new Form();
                form.addChild(formItem);
                addItem(form);

                textGraphic = new TextGraphic();
                textGraphic.text = "The quick brown fox jumped over the lazy dog.";
                textGraphic.setStyle("fontSize", 24);
                textGraphic.setStyle("lineThough", false);
                textGraphic.horizontalCenter = 0;
                textGraphic.verticalCenter = 0;
                addItem(textGraphic);
            }

            private function fxCheckBox_change(evt:Event):void {
                var value:Boolean = fxCheckBox.selected
                textGraphic.setStyle("lineThrough", value);
            }
        ]]>
    </Script>

</FxApplication>