Skip to main content
Inspiring
Apr 22, 2010 11:43 PM UTC
Answered

Text Wrapping Sprites

Hi,

My "canvas" is managed by a ContainerController in this way:

var newPageController:ContainerController = new ContainerController( pageContainer, pageWidth, pageHeight );

var controllerFormat:TextLayoutFormat = new TextLayoutFormat();
newPageController.format = controllerFormat;
textFlow.flowComposer.addController( newPageController );

where "pageContainer" is a Sprite. This is working just fine

What I need to do now, is be able to remove a section of the "pageContainer" (Sprite) from the text flow. In other words, set another sprite over "pageContainer" and force the text to wrap it.

Any ideas will be appreciated,

This topic is closed to new replies. Start a new post to keep the conversation going.
robin_briggsCorrect answer
Adobe Employee
Apr 23, 2010 11:59 PM UTC

Best way to do that now is to divide your page canvas into multiple rectangular regions, make a ContainerController for each rectangle, and add them together into the same TextFlow using:

     textFlow.flowComposer.addController();

TLF doesn't support non-rectangular containers, but multiple rectangular containers might get you close to what you want.

- robin

1 reply

robin_briggsCorrect answer
Adobe Employee
Apr 23, 2010 11:59 PM UTC

Best way to do that now is to divide your page canvas into multiple rectangular regions, make a ContainerController for each rectangle, and add them together into the same TextFlow using:

     textFlow.flowComposer.addController();

TLF doesn't support non-rectangular containers, but multiple rectangular containers might get you close to what you want.

- robin

Translate