I couldn't find it specifically stated in the docs, but I suspect that the TabNavigator is going to require *container* children and won't allow a naked control. It may be looking for "label" or something like that.
Wrap the RTE in a canvas and it works ok. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of parkerwhirlow Sent: Tuesday, January 02, 2007 5:34 PM To: [email protected] Subject: [flexcoders] Rich text editor in TabNavigator causes runtime exception. Hi all, I have placed a RichTextEditor into a tabNavigator, and I get the following runtime error. See sample app. If you remove the tabNavigator, then the RichTextEditor works fine. Any ideas? Am I doing something dumb? TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::RichTextEditor/mx.controls:RichTextEditor::createChildren() at mx.core::UIComponent/initialize() at mx.core::Container/initialize() and TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::RichTextEditor/::getTextStyles() at Function/http://adobe.com/AS3/2006/builtin::apply <http://adobe.com/AS3/2006/builtin::apply> () at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() _________________________________ <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="vertical" width="400" height="300"> <mx:TabNavigator width="100%" height="100%"> <mx:RichTextEditor label="SQL" width="100%" height="100%" showControlBar="false" headerHeight="0" borderThicknessBottom="10" borderThicknessTop="10"> </mx:RichTextEditor> </mx:TabNavigator> </mx:Application>

