• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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 UI Components Expand triangle.

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.

Click OK.

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.

Click OK.

Click the Control menu, and then click Test Movie.

If you click the up and down arrows on the NumericStepper, the value in the TextInput field change. 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.

Click the Value field at the top of the Component Inspector panel, click the Direction option, and then change the value from in/out to out.

Click the Control menu, and then click Test Movie.

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 that exist in Frame 1 of the main Timeline, Frame 1 of a movie clip, or Frame 1 of a screen.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint