Skip to main content
Participant
Jan 12, 2011 3:05 PM UTC
Question

TLF insertinlineGraphic inserts but not visible

I am using

IEditManager( editor.textFlow.interactionManager ).insertInlineGraphic(urlRequest, 100, 100, "left");

to add an image to the textFlow. If i use "none" the image is rendered inline as you would expect. However when set to "left" or "right" it adds it without error, but the image does not display on the screen. (i know it display because if i look at the tlf text ouput the img is added, also a small whitspace is added to the screen)

anyone have any ideas?

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Adobe Employee
Jan 12, 2011 7:30 PM UTC

If you are using TLF 1.0 or 1.1, which are part of Flash CS5 and Flex 4.0 and 4.1, then "none" is the only option

supported in insertInlineGraphic. TLF 2.0, included as part of Flex Hero,supports additional options including "left", "right", "start" and "end".

What version of TLF are you using?

- robin

Translate
ozDiGennaro
Participating Frequently
Jan 13, 2011 12:07 AM UTC

I am having the same problem.  Do I discover the version of TLF by looking in my Flash Building installation tree?

   C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\frameworks\projects\textLayout\src\flashx\textLayout\elements

The files look older than the latest version.  How do I update to the latest TLF?

Thanks.

Oz

Translate
Jan 13, 2011 12:40 AM UTC

If you're using Flash Builder, TLF 2.0 is meant to be used with the upcoming version. So the easiest way to update to the latest TLF is to switch to the Hero builds: http://opensource.adobe.com/wiki/display/flexsdk/Hero

But if you want to try using TLF 2.0 with the 4.0 or 4.1 Flex SDK, we have a blog post detailing what you need to do: http://blogs.adobe.com/tlf/2010/07/flex-4-updates-for-tlf-20.html

Translate