Skip to main content
Inspiring
Jan 23, 2009 10:49 PM UTC
Answered

importToFlow(...) Broken?

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 is closed to new replies. Start a new post to keep the conversation going.
rdermerCorrect answer
Inspiring
Jan 23, 2009 10:55 PM UTC
It's requiring the namespace now. Add xmlns=' http://ns.adobe.com/textLayout/2008' to the TextFlow tag.

2 replies

rdermerCorrect answer
Inspiring
Jan 23, 2009 10:55 PM UTC
It's requiring the namespace now. Add xmlns=' http://ns.adobe.com/textLayout/2008' to the TextFlow tag.
Translate
Inspiring
Jan 26, 2009 4:36 PM UTC
Perfect, that worked great, thank you!
Translate