tailieunhanh - Thiết kế flash với flash cs5 part 75

Sửa đổi Bindings Một khi bạn tạo ra một ràng buộc giữa hai thành phần hoặc giữa một thành phần, chẳng hạn như một DataGrid, và tập tin bên ngoài, bạn có thể kiểm soát các ràng buộc thông qua các tùy chọn ràng buộc. | Modifying Bindings Once you create a binding between two components or between a component such as a DataGrid and an external file you can control the binding through the binding options. For example you may not want the exchange of data either way or you may wish to control what type of data is entered or received. The Binding options located on the Bindings tab give you several author-controllable options. Modify Bindings Open the Components panel. Click the User Interface arrow to expand the list. Drag the NumericStepper component onto the Stage and then select the component. Give the NumericStepper a unique instance name in the Property Inspector. Drag a TextInput component onto the Stage and then give it a unique instance name. Select the NumericStepper component. Open the Component Inspector panel and then click the Bindings tab. Click the Add Binding button to add a binding. In the Add Binding dialog box select Value. Q Click OK. 460 Chapter 18 Move to the Name Value section located at the bottom of the Bindings tab. Click the Bound To item under Name and then click the Magnifying Glass icon. In the Bound To dialog box select the TextInput component. Q Click OK. Click the Control menu point to Test Movie and then click Test. If you click the up and down arrows on the NumericStepper the value in the TextInput field changes. If you enter a value into the TextInput field and press Return or Tab the value in the NumericStepper changes. Close the Flash movie and then select the NumericStepper. Select Value at the top of the Component Inspector panel click the Directions option and then change the value from in out to out. Click the Control menu point to Test Movie and then click Test. If you click the up and down arrows on the NumericStepper the value in the TextInput field changes. If you enter a value into the TextInput field and press Return or Tab the value in the NumericStepper no longer changes. IMPORTANT Data binding is supported only between components .