Question
"simple" lists in flex 4
The intended output with bulleted lists:
- text text text text text text text text text text text text text text
text text text text text text text text text text text text
- text text text text text text text text text text text text text text
text text text text text text text text text text text
- text text text text text text text text text text text text text text
text text text text text text text text text text text text text
The intended output with enumerated lists:
1. text text text text text text text text text text text text text text
text text text text text text text text text text text text text text
2. text text text text text text text text text text text text text text
text text text text text text text text text text text text text text
text text text text text text
3. text text text text text text text text text text text text text
text text text text text text text text text text text text text text
text text text text text
You have the idea. The only possibility to have the above output with flex 4 seems to be the following:
<s:TextArea width="100%" selectable="false" editable="false" xmlns="library://ns.adobe.com/flex/spark"><textFlow><TextFlow>
<p>- text ...</p>
<p>- text ...</p>
<p>- text ...</p>
</TextFlow></textFlow></s:TextArea>
and
<s:TextArea width="100%" selectable="false" editable="false" xmlns="library://ns.adobe.com/flex/spark"><textFlow><TextFlow>
<p>1. text ...</p>
<p>2. text ...</p>
<p>3. text ...</p>
</TextFlow></textFlow></s:TextArea>
There are at least two problems with the flex 4 version.
1. The footprint of the resulting SWF is huge. I must use "-static-link-runtime-shared-libraries",
but the compiler does not select the strictly relevant routines from the libraries. This problem
is expecially felt when mounting many SWFs into the final "plug-and-play"-like application.
2. The style/format of the output cannot be specified via CSS. For example, the following CSS
directive is completely ignored by the compiler:
s|p { paragraphStartIndent: "20"; textIndent: "-20"; }
The directive is ignored both because textIndent does not accept negative values,
and because "s|p" is not accepted as directive. Specifying the format directly in
the paragraph does not solve the problem.
3. Both the bullets and the numbers must be typed in.
Using ActionScript make things worse. By comparison, LaTeX would achieve the aim with four lines of code.
Please fix the above problems.
Bob
