<?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>
转载于:https://www.cnblogs.com/quyanhui/p/3378152.html