Remove the alignment buttons from a RichTextEditor control
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public function removeAlignButtons():void { rt1.toolbar.removeChild(rt1.alignButtons); } </mx:Script> <mx:RichTextEditor id="rt1" title="RichTextEditor With No Align Buttons" creationComplete="removeAlignButtons()" /> <mx:RichTextEditor id="rt2" title="Default RichTextEditor" /> </mx:Application>