This is code of this example:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="init()"><s:layout><s:VerticalLayout /></s:layout>
<fx:Script></fx:Script>
<s:Label text="Write text under:" />
<s:RichEditableText id="ret" width="300" height="80"
selectionHighlighting="whenActive" />
<s:Button label="Undo" id="undo" click="doUndo(event)" />
<s:Button label="Set Style" click="setBg(event)" />
<s:Button label="Custom button" />
</s:Application>
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/setStyle-destroy-UndoManager-tp6827p6837.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.