1.

Differences Between Defining Bindings In Mxml And Actionscript?

Answer»

There are a few differences between defining data bindings in MXML at compile time and in defining them at runtime in ActionScript:

  • You cannot include ActionScript code in a data binding expression defined by the bindProperty() or bindSetter() METHOD. Instead, use the bindSetter() method to SPECIFY a method to call when the binding occurs.
  • You cannot include an E4X expression in a data binding expression defined in ActionScript.
  • You cannot include functions or array elements in property chains in a data binding expression defined by the bindProperty() or bindSetter() method. For more INFORMATION on property chains, see Working with bindable property chains.
  • The MXML compiler has BETTER warning and ERROR detection support than runtime data bindings defined by the bindProperty() or bindSetter() method.

There are a few differences between defining data bindings in MXML at compile time and in defining them at runtime in ActionScript:



Discussion

No Comment Found