[flexcoders] Re: unable to bind to property

2010-08-04 Thread Dave Bonnell
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.

[flexcoders] Re: TextArea -- allow tab character in restrict property

2010-06-11 Thread Dave Bonnell
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

[flexcoders] Re: TextArea -- allow tab character in restrict property

2010-06-10 Thread Dave Bonnell
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");

[flexcoders] Re: TextArea -- allow tab character in restrict property

2010-06-10 Thread Dave Bonnell
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.