Ah, it is strongly implied in the docs that TabNavigator children must
be containers: "...for navigating between its child containers ...", and
similar language.

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parkerwhirlow
Sent: Tuesday, January 02, 2007 5:34 PM
To: flexcoders@yahoogroups.com
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>

 

Reply via email to