Skip to main content
October 26, 2009
Question

BreakOpportunity is not defined?

  • October 26, 2009
  • 1 reply
  • 2246 views

I have a Flex application that I'm now trying to create an AIR version for.

I created a class to help display subscripts and superscripts through the TLF.

It seems to die as soon as it tries to import to flow:

_textFlow = TextConverter.importToFlow(tmpText,TextConverter.TEXT_LAYOUT_FORMAT);

Getting the following in the console:

ReferenceError: Error #1065: Variable flash.text.engine::BreakOpportunity is not defined.

at flashx.textLayout.formats::TextLayoutFormat$cinit()

at global$init()

at flashx.textLayout.conversion::TextLayoutImporter$cinit()

at global$init()

I'm using SDK 3.4.0.

I had to get the textLayout.swc from Gumbo (flex_sdk_4.0.0.7219.zip)

Has anyone else run into this situation?

Does anyone have any suggestions?

Much Thanks.

This topic has been closed for replies.

1 reply

Adobe Employee
October 26, 2009

I think you might be running an older Flash Player (before 10). Try upgrading to Flash Player 10.

- robin

October 26, 2009

Thanks Robin.

That's a good place to check.

I have Flash player version 10,0,22,87 installed.

Is that good enough?