0

The following code doesnt work:

<s:TextArea name = "Desc1" id="Desc1" x="8" y="233" width="162" height="369" restrict="^&"/>

im trying to not allow the user to input de "&",in flash it works well but in textarea of flash builder it gets me an error.

Vinicius Albino
  • 743
  • 2
  • 8
  • 21

1 Answers1

1

Try writing "^&amp;". The & character in an mxml tag must be html-escaped. It's the same if you try to write an AND condition in a bound property (text="{bool1 &amp;&amp; bool2?'ok':'ko'}"), it's highly unreadable but useful.

Kodiak
  • 5,978
  • 17
  • 35