Skip to main content
Participant
December 9, 2010
Question

flowComposer.updateAllControllers(); results in Error #1009

  • December 9, 2010
  • 1 reply
  • 599 views

Hi,

We are trying to integrate the sample application SimpleEditorWithCSS into a Flex 3 application.

We have upgraded to Flex 4. and using the HALO theme.

The application compiles, but when we try to include the SimpleEditorPanel, and we set the textFlow in it,

we get an error in the set textFlow () function, on the line below:

_textFlow.flowComposer.updateAllControllers();

See below the error that we are getting

The integration and initialization of the component is exactly done like the example.

Anybody seen this before and do you know what we are doing wrong here?

I cannot see in the function where the error occurs, so it's hard to understand what is happening.

Cheers,

Anton

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at flashx.textLayout.container::ContainerController/getFirstTextLineChildIndex()

at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateCompositionShapes()

at flashx.textLayout.compose::StandardFlowComposer/updateCompositionShapes()

at flashx.textLayout.compose::StandardFlowComposer/updateToController()

at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()

at com.n200.components.htmlEditor::HtmlEditorPanel/set textFlow()

at com.n200.enter.view.loginUser::LogOnPanel/init()

at com.n200.enter.view.loginUser::LogOnPanel/___LogOnPanel_HBox1_initialize()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at mx.core::UIComponent/dispatchEvent()

at mx.core::UIComponent/set processedDescriptors()

at mx.core::Container/createComponentsFromDescriptors()

at mx.core::Container/createDeferredContent()

at mx.containers::ViewStack/instantiateSelectedChild()

at mx.containers::ViewStack/commitProperties()

at mx.core::UIComponent/validateProperties()

at mx.managers::LayoutManager/validateProperties()

at mx.managers::LayoutManager/doPhasedInstantiation()

at mx.managers::LayoutManager/doPhasedInstantiationCallback()

This topic has been closed for replies.

1 reply

Participant
December 9, 2010

I made a mistake, the init() function for the SimpleEditorPanel was not executed, therefore the _container was not being initialized, this is what caused the problem.