flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <mark.kessler....@usmc.mil>
Subject RE: AS top add <s:br/>
Date Tue, 08 Apr 2014 14:34:50 GMT
Maybe change up to use something that supports htmlText? [1][2]  and it seems to be using "
<br>" without the slash.


this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
my_txt.html = true;
my_txt.htmlText = "<b> this is bold text </b>";


[1] http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html#htmlText
[2] http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001601.html


-Mark

-----Original Message-----
From: Scott Matheson [mailto:smatheson@intralinks.com]
Sent: Tuesday, April 08, 2014 10:22 AM
To: <users@flex.apache.org>
Subject: Re: AS top add <s:br/>

Span.text = "<br/>"

Is rendered as txt I will try CR

Sent from my iPhone

> On 8 Apr 2014, at 14:40, "mark.kessler.ctr@usmc.mil" <mark.kessler.ctr@usmc.mil>
wrote:
>
> I think your CR could be done as "\n" and since it's accepting regular text now, wouldn't
"<br/>" work in text?
>
> -Mark
>
> -----Original Message-----
> From: Scott Matheson [mailto:smatheson@intralinks.com]
> Sent: Tuesday, April 08, 2014 9:19 AM
> To: users@flex.apache.org
> Subject: AS top add <s:br/>
>
> Hi
>   I would like to tank all these how have helped me almost to the the answer,  I have
reduced this down to a simple problems, if this MXML works the <s:br/>  adds a line
>
>
>
>
> <s:p id="p1">
>
> <s:span id="s1">
>
> <s:text>
>
> Bacon ipsum dolor sit amet turducken pancetta short ribs tail anim pig.
>
> In pastrami in, ball tip flank shankle beef ribs spare ribs deserunt pancetta esse cupidatat
aliquip venison pork chop.
>
> Pork loin commodo corned beef ullamco culpa dolore occaecat, capicola adipisicing ribeye
bresaola sunt est.
>
> Commodo labore culpa ut, sausage ad meatloaf adipisicing.
>
> </s:text>
>
> </s:span>
>
> <s:br/>
>
> </s:p>
>
>
>
> how do i do the same with AS, this is want i have been working with , no luck
>
>
>
> private function addCRLF():void{
>
> var span:SpanElement = new SpanElement();
>
> /*  span.text = "CRLF";  <s:br/>  */
>
> span.text = "&#13;"
>
> p.addChild(span);
>
> _textFlow.addChild(p)
>
> }
>
>
> ________________________________
>
> Disclaimer: This electronic mail and any attachments are confidential and may be privileged.
If you are not the intended recipient, please notify the sender immediately by replying to
this email, and destroy all copies of this email and any attachments. Thank you.

________________________________

Disclaimer: This electronic mail and any attachments are confidential and may be privileged.
If you are not the intended recipient, please notify the sender immediately by replying to
this email, and destroy all copies of this email and any attachments. Thank you.

Mime
View raw message