Answered
Formatting paragraphs strategies
As i understand, padding paragraphs isn't supported in Flash.
I'm not happy to just put a full line height after each paragraph,
especially because the texts on my site will be loaded from a XML
source.
You'll find on my working site, an example on the Ego section. The XML file loaded can be found there.
1. The first solution for me was to put an extra node ( <espace> </espace> ) after each new paragraph and put all the text into a dynamic textfield. This is actually what is code.
2. Another solution would be this code. It creates a textfield for each node and place it after the code calculated the needed height. (see below)
This, however has a drawback, i'm not fluent enough for now to how to devise a scrolling area for all these textfields... And is this the right method anyway? How do you manage spaces between paragraph? I want a simple solution for coding the XML file since it could be another person who will deal with the content.
Which method is preferable? Are there other solutions?
You'll find on my working site, an example on the Ego section. The XML file loaded can be found there.
1. The first solution for me was to put an extra node ( <espace> </espace> ) after each new paragraph and put all the text into a dynamic textfield. This is actually what is code.
2. Another solution would be this code. It creates a textfield for each node and place it after the code calculated the needed height. (see below)
This, however has a drawback, i'm not fluent enough for now to how to devise a scrolling area for all these textfields... And is this the right method anyway? How do you manage spaces between paragraph? I want a simple solution for coding the XML file since it could be another person who will deal with the content.
Which method is preferable? Are there other solutions?
