Skip to main content
Participating Frequently
September 5, 2009
Question

something like "</ br>" tag

  • September 5, 2009
  • 1 reply
  • 723 views

Hello folks,

I need to use something like "</br>" tag inside paragraph tag in TLF but I can't find anything working. Is there a tag or something that could solve my problem? I use paragraphSpaceAfter to have a gap beetween normal paragraphs and I want to break a line without this gap. like this

Address

Street

phone no.1

phone no.2

Email

Btw I know that I can set paragraphSpaceAfter=0 between this two lines but when I have everything set up in AS class it is hard to do. I need this text to be fetched from a database and it has to be also updated via Flex-based admin site. So it would be easy if I could add <p paragraphSpaceAfter =0> between phone numbers but such tags are ignored in Flash with embedded fonts and other props of TextLayoutFormat. Am I right?

So is there a tag that could do a trick, or how to force Flash to prefer tags in fetched text.

cheers

This topic has been closed for replies.

1 reply

September 5, 2009

A <br/> tag in TLF markup should work the way you want. It is translated into a forced line break that is not treated as a paragraph boundary. When I import the following markup I get the line placement you're looking for.

<?xml version="1.0" encoding="utf-8"?>

<TextFlow paragraphSpaceAfter="10" xmlns="http://ns.adobe.com/textLayout/2008">

<p><span>Address</span></p>

<p><span>Street</span></p>

<p><span>phone no.1<br/>phone no.2</span></p>

<p><span>Email</span></p>

</TextFlow>

Participating Frequently
September 6, 2009

uh. this works indeed. Thank You.