Property binding of FLASH controls (components)

After the date is selected, the TextBox automatically displays the selected date through the binding function.

Pull out 2 controls TextInput and DateChooser,

Among them, DataChooser can only be available under AS2.0, and AS3.0 does not have this control.

For unknown reasons, it seems that AS3.0 controls are qualitatively different from AS2.0 controls.

Control screenshot

Click "Control Properties" to modify properties and bindings

Property binding maintenance button 

 

 Add a binding item, select the [Binding] tab in "Control Properties", click the [Add Binding] button, and add the binding selectedDate:Date.Control Properties window              Add binding property

 

 DataChooser binds the text property of TextBox one-way, so the above picture

direction-->out

bound to-->txtDate:text

 

And the format of the binding output content can be set through the formatter

 

After completing the binding, you can press the shortcut key Ctrl+Enter to test the result

Guess you like

Origin blog.csdn.net/avi9111/article/details/4468700