Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash textlayoutformat最后一行的左对齐_Flash_Apache Flex_Flash Builder_Flex4.5 - Fatal编程技术网

Flash textlayoutformat最后一行的左对齐

Flash textlayoutformat最后一行的左对齐,flash,apache-flex,flash-builder,flex4.5,Flash,Apache Flex,Flash Builder,Flex4.5,我设置textLayoutFormat.textAlign=textAlign.JUSTIFY用于以下tlf sample text sample text sample text sample text sample text sample text sample text 但它看起来像这样 sample text sample text sample text sample text sample text sample text sample

我设置
textLayoutFormat.textAlign=textAlign.JUSTIFY用于以下tlf

sample text sample text sample text
sample text sample text sample text
             sample text
但它看起来像这样

sample text sample text sample text
sample text sample text sample text
sample                         text

我想为最后一行设置左对齐。

使用
textAlignLast
属性

例如:


产出:

sample text sample text sample text
sample text sample text sample text
                        sample text

请注意,
textAlignLast
仅适用于对齐文本。

使用
textAlignLast
属性

例如:


产出:

sample text sample text sample text
sample text sample text sample text
                        sample text

请注意,
textAlignLast
仅适用于对齐文本。

textLayoutFormat.textAlign=textAlign.JUSTIFY;textLayoutFormat.textAlignLast=TextAlign.LEFT;我也在做同样的事情,但工作起来并不奇怪,您是否尝试将
align和alignLast
应用到组件本身,而不是textlayoutformat?textlayoutformat.textlaygn=textlaygn.JUSTIFY;textLayoutFormat.textAlignLast=TextAlign.LEFT;我也这么做了,但它的工作方式并不奇怪,您是否尝试将
align和alignLast
应用于组件本身而不是textlayoutformat?