As Alex mentioned, binding expressions require bindable objects. The plain
Object elements in your ArrayCollection are not bindable, so you will get
binding warnings if you attempt to bind to properties (e.g. name) on those
objects.
To make your Object's bindable, wrap them with ObjectProxy's.
The problem is that the Flash TextField control does not seem to apply the
restrict when text is pasted into the field. TextField dispatches a textInput
event whenever text is typed or pasted, so by intercepting this, you can
manually apply the restrict yourself.
http://www.adobe.com/2006/m
Here's an even simpler solution ... create a MyTextArea component that extends
TextArea, capture the keyFocusChange event to block it and insert a tab.
MyTextArea.mxml
--
http://www.adobe.com/2006/mxml";>
event.preventDefault();
this.textField.replaceSelectedText("\t");
A tab is normally specified in a string using the escape sequence "\t",
similarly to how you use "\n" to represent a newline.
BUT ... the tab key is used to move focus to the next control in the container,
so the TextArea is not going to respond to it anyway, even if you add it to
restrict.
4 matches
Mail list logo