jeudi 16 février 2017

How to set the space between image and text in the AS3 TextFlow

my code is:

htmlMarkup:XML =
            <TextFlow whiteSpaceCollapse="preserve" version="3.0.0" xmlns="http://ift.tt/1MMzxNZ">
                <p><font face="Arial" size="18"><span>TLF 2.0 will <span class="word">include</span> support for Floats. This feature is currently under development,</span>
                    <span> so the final form may change, but what follows is a description of how it works now. We are </span>
                    <img height="auto" width="auto" src="http://ift.tt/2iNhfFp" align="left"/>
                    <span>so the final form may change, but what follows is a description of how it works now. We are </span>
                    <span>very interested in feedback on this feature, so please let us know how it works for you, </span>
                    <span>very interested in feedback on this feature, so please let us know how it works for you, </span>
                    <span>and if you have any suggestions for improvements.</span></font>
                </p>
            </TextFlow>;
var textFlow:TextFlow = TextConverter.importToFlow(htmlMarkup, TextConverter.TEXT_FIELD_HTML_FORMAT);

Run this code, the image and text is closed, no space. But I want separate them with some white pixels. I try to use css label "padding", but no effect.

Aucun commentaire:

Enregistrer un commentaire