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()
        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"; 
        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>

Reply via email to