tags:

views:

13

answers:

1

I have an editable combobox. How can I bind the text the user enters? I can only do binding when the user selects whatever it is they typed in...how can I bind it as they type?

A: 
<script>

    [Bindable]
    public var boundText:String;

</script>

<TextBox text="@{boundText}" />

This will set up a two-way binding so changes to the textbox's text are reflected in boundText, and vice-versa.

Colin Cochrane