Skip to main content
Participant
April 20, 2010
Question

Text wrapping around image

  • April 20, 2010
  • 1 reply
  • 4326 views

Hi !

Does anyone here know how to wrap text around an image in TLF ?

Thanks,

Aurélien (France)

This topic has been closed for replies.

1 reply

April 20, 2010

We don't yet have a text wrap feature in TLF. You can mimic text wrap with multiple linked containers - Robin described the process in this thread: http://forums.adobe.com/message/2705930#2705930

Inspiring
April 23, 2010

I've described text wrapping here: http://e2easy.wordpress.com/2010/02/21/wrapping-text-around-a-giraffe/  and in various related blog posts.  You can even download my AIR application and try it out.

The crux of powerful text wrapping (around irregular obstacles) is that it requires you to create single line ContainerControllers.  Unfortunately, Adobe provides no API to create a single line ContainerController - and it is very difficult to fight against the default behaviour of TextFlows and ContainerControllers, when there is formatting (like different sized text).  While it is possible to trim a ContainerController down to a single TextLine - I haven't found a way to keep it that way.

My advice to anyone doing this from scratch is NOT to use the TLF.  If I was starting this project again, I'd build my own framework from flash.text.engine.

Has anyone else solved the single-line TLF problem?

April 26, 2010

I found extending TLF easier than working from scratch. There's too much

overhead you need to recreate if you don't start with TLF, especially if you

want editing/selection/etc capabilities.

I don't have a working version of this because I did it on a beta build and

the release build broke my code