Steps to reproduce:
1.
2.
3.
Actual Results:
Expected Results:
Workaround (if any):
If you are trying to add a line break while setting the text property in the actual mxml tag you have to do it like this:
<mx:Text text="Two{'\r'}Lines" id="textSample"/>
If you are setting it in actionscript however you can just put the \r in normally with the rest of the text, i.e.:
textSample.text='Two\rLines';
I think this is a bug with flex builder but as there aren't many scenarios in which someone would need to set the text property manually like that I'd imagine they may not have picked up on it yet.
Steps to reproduce:
1.
2.
3.
Actual Results:
Expected Results:
Workaround (if any):
If you are trying to add a line break while setting the text property in the actual mxml tag you have to do it like this:
<mx:Text text="Two{'\r'}Lines" id="textSample"/>
If you are setting it in actionscript however you can just put the \r in normally with the rest of the text, i.e.:
textSample.text='Two\rLines';
I think this is a bug with flex builder but as there aren't many scenarios in which someone would need to set the text property manually like that I'd imagine they may not have picked up on it yet.