Skip to main content
Inspiring
January 23, 2009
Answered

importToFlow(...) Broken?

  • January 23, 2009
  • 1 reply
  • 544 views
I recompiled my project using the new library packages as recommended in the other topic I started earlier. Suddenly, creating my TextFlow object by way of import is no longer working. This happens both using TLF builds 4648 and the packages contained within the SDK nightly 4635. Code in question:

// Create a text flow
var markup:XML = <TextFlow><p></p></TextFlow>;
theTextFlow = TextFilter.importToFlow(markup, TextFilter.TEXT_LAYOUT_FORMAT);

This worked fine with the TLF version distributed on Adobe Labs from November. With the new nightly builds, importToFlow(...) is returning a null value.

I do have an account on the Adobe Bug Tracking System/JIRA but I'm not sure if I hit a bug or constructing a text flow has changed in the past 2 months. Any ideas?
This topic has been closed for replies.
Correct answer rdermer
It's requiring the namespace now. Add xmlns=' http://ns.adobe.com/textLayout/2008' to the TextFlow tag.

1 reply

rdermerCorrect answer
Adobe Employee
January 23, 2009
It's requiring the namespace now. Add xmlns=' http://ns.adobe.com/textLayout/2008' to the TextFlow tag.
Inspiring
January 26, 2009
Perfect, that worked great, thank you!