Skip to main content
Inspiring
April 22, 2010
Answered

Text Wrapping Sprites

  • April 22, 2010
  • 1 reply
  • 430 views

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 has been closed for replies.
Correct answer robin_briggs

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
April 23, 2010

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