Skip to main content
Participant
August 29, 2011
Answered

TLF 1.0 weird rendering

  • August 29, 2011
  • 2 replies
  • 1239 views

I use Flash CS5.0, TLF 1.0 and is viewing the output with SA Player 10.1 and Web Player 11.

I tried to create some TLF text, but the result looks weird:

someTLF.tlfMarkup =
"<TextFlow fontLookup=\"embeddedCFF\" lineBreak=\"toFit\" whiteSpaceCollapse=\"preserve\" xmlns=\"http://ns.adobe.com/textLayout/2008\">" +
"  <p><img source=\"http://kb2.adobe.com/cps/155/tn_15507/images/flashplayerversion.swf\" height=\"160\" width=\"240\"/>Flash Movie</p>" +
"  <p><img source=\"http://upload.wikimedia.org/wikipedia/en/2/2e/Adobe_InDesign_CS5_Icon.png\" height=\"160\" width=\"160\"/>PNG Image</p>" +
"  <p><img source=\"http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg\" height=\"auto\" width=\"auto\"/>JPEG Image</p>" +
"  <p><span fontFamily=\"Myriad Pro\" fontLookup=\"inherit\">Myriad Pro</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro\" fontLookup=\"inherit\" fontStyle=\"italic\">Myriad Pro Italic</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro\" fontLookup=\"inherit\" fontWeight=\"bold\">Myriad Pro Bold</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro\" fontLookup=\"inherit\" fontStyle=\"italic\" fontWeight=\"bold\">Myriad Pro Bold Italic</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro Light\" fontLookup=\"inherit\">Myriad Pro Semibold</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro Light\" fontLookup=\"inherit\" fontStyle=\"italic\">Myriad Pro Semibold Italic</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro Cond\" fontLookup=\"inherit\">Myriad Pro Condensed</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro Cond\" fontLookup=\"inherit\" fontStyle=\"italic\">Myriad Pro Condensed Italic</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro Cond\" fontLookup=\"inherit\" fontWeight=\"bold\">Myriad Pro Condensed Bold</span><span fontLookup=\"inherit\"> </span></p>" +
"  <p><span fontFamily=\"Myriad Pro Cond\" fontLookup=\"inherit\" fontStyle=\"italic\" fontWeight=\"bold\">Myriad Pro Condensed Bold Italic</span><span fontLookup=\"inherit\"> </span></p>" +
"</TextFlow>";

Anything that are supposed to be cropped out at first end up not showing up at all, until I scroll the text:

Is there any way to work around this?

Any help would be appreciated.

This topic has been closed for replies.
Correct answer Jin-Huang
<p><img source=\"http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg\" height=\"100\" width=\"100\"/>JPEG Image</p>

Are you talking about the third image? You can set the width and height as 100, and it will show up.

Sometimes, "auto" cannot get the actual size of the image and preserve the correct area to hold image in time.

What's more, you can set the lineHeight as 100%. The space between two lines will be large if the inline graphic is large, because the default lineHeight is 120%.

2 replies

Participant
August 30, 2011

Interesting. My observation yesterday seemed to suggest otherwise (that fixing the dimensions won't help), but it's solved now! Thankies!

Here's another question: How do I embed MovieClips into a TLFTextField? This thread did give some interesting information, but is there any way to do so without having  source to copy from like the example file posted by idratherbegolfing in the middle of the thread?

The fact that there is an inline symbol right in the FLA's TLF text is baffling me. Shouldn't such functionality be shown in the authoring environment to let people do it without accessing the AS code, the FLA's structure itself or an external program like InDesign (which is not in Web Premium and therefore not accessible at where I'm at)?

(Off-topic: I seriously think Design Premium and Web Premium should merge. It's only a difference in 3 programs.)

Adobe Employee
August 30, 2011

That thread is quite old and long. TLF has already supported "Floats" for now.

TLF is a framework. To use TLF, writing AS code is a must most of time. The authoring environment is quite simple, and cannot synchronize with TLF new functionalities. The authoring environment is not what we are working with. Even TLFTextField is not, which is a part of authoring environment. So, you may want to annouce your requirements to Flash Pro team.

Participant
August 30, 2011

Thanks! I understand that the final SWF is going to use AS anyway, but the authoring environment does that job for you when using TLFTextField.

That's one more feature request for them then.

Jin-HuangCorrect answer
Adobe Employee
August 29, 2011
<p><img source=\"http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg\" height=\"100\" width=\"100\"/>JPEG Image</p>

Are you talking about the third image? You can set the width and height as 100, and it will show up.

Sometimes, "auto" cannot get the actual size of the image and preserve the correct area to hold image in time.

What's more, you can set the lineHeight as 100%. The space between two lines will be large if the inline graphic is large, because the default lineHeight is 120%.