Skip to main content
Inspiring
September 7, 2010
Question

Flowcomposer updateAllControllers Error #1009

  • September 7, 2010
  • 1 reply
  • 1903 views

Hello Forum,

I get Error #1009 when I'm calling flowcomposer.updateAllControllers of my textflow AND the text is too big to fit in my container...

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flashx.textLayout.compose::BaseCompose/parcelHasChanged()
at flashx.textLayout.compose::BaseCompose/advanceToNextParcel()
at flashx.textLayout.compose::BaseCompose/fitLineToParcel()
at flashx.textLayout.compose::ComposeState/composeNextLine()
at flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()
at flashx.textLayout.compose::BaseCompose/composeParagraphElement()
at flashx.textLayout.compose::ComposeState/composeParagraphElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeInternal()
at flashx.textLayout.compose::ComposeState/composeInternal()
at flashx.textLayout.compose::BaseCompose/composeTextFlow()
at flashx.textLayout.compose::ComposeState/composeTextFlow()
at flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()
at flashx.textLayout.compose::StandardFlowComposer/internalCompose()
at flashx.textLayout.compose::StandardFlowComposer/updateToController()
at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()

Does anyone know why I get this error? My solution now is to just ignore the error with a try and catch...it works, but I don't like it....

This topic has been closed for replies.

1 reply

September 7, 2010

Could you give us some more information? I haven't been able to reproduce that error. I'm assuming you're using TLF 2.0 (because of the callTheComposer call in the stack). What kind of changes are you making before you call updateAllControllers?

Inspiring
September 7, 2010

Yes, I'm working in tlf 2.0.

And I'm making a lot of changes (I tried to reproduce the error in a small test, and also couldn't reproduce it...).

I set the format of a ContainerController

I add the ContainerController to a TextFlow (with flowComposer.addController)

I set the format of a ParagraphElement (which is attached to the TextFlow with addChild), i set the format of spanElement (which is attached to the ParagraphElement with addChild), then i add text to the spanElement.

Then I call flowComposer.updateAllControllers of the TextFlow

The example where I get the error concerns one line of text and the line does not fit into the ContainerController because the fontSize of this line is too big.

Inspiring
September 7, 2010

the line is in Arial Regular with font size 72...