RichTextEditor 文本编辑

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx"
                width="100%" height="100%">
    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            private function init():void
            {
                Alert.show(this.rich.htmlText);
            }
        ]]>
    </fx:Script>
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:VGroup width="100%">
        <mx:RichTextEditor id="rich" width="100%" height="100%"/>
        <s:Button label="button" click="init()"/>
    </s:VGroup>
</s:Application>

posted @ 2013-10-19 18:25  High阔天空  阅读(393)  评论(0编辑  收藏  举报