Try e.g. myRichTextEditor.toolBar2.removeChildAt(2); pretty sure that'll work ... NOTE: toolBar2, NOT toolbar Cheers John
-----Original Message----- From: Paul Whitelock [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 November 2006 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Removing underlineButton from RichTextEditor I'm trying to customize the RichTextEditor by removing some controls. I've been able to successfully remove a number of them (alignButtons, colorPicker, etc.) but when I do a toolbar.removeChild(underlineButton) I get the following error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. I don't see any notes in the documentation indicating that this button is removed any differently than the other controls. Am I missing something? TIA for any help! This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.