Download - Data Binding in Flex

Transcript
  • 1. Data Binding . Flex http://riapriority.com/ [email_address]
  • 2.
    • Flex ?
    • data binding ?
    • data binding Flash ?
    • , data binding ?
    • Flash CS 3
  • 3. ? data binding
    • .
    • .
  • 4. :
    • source property
    • destination property ()
    • triggering event
    Source property Triggering event Destination property
  • 5. Destination property Source property
  • 6. : source property Destination property Source property
  • 7. : source property Destination property Source property Triggering event
  • 8. : Destination property Source property source property Triggering event
  • 9.
    • dispatch -
  • 10.
    • mxml
      • ({})
      • < mx : Binding >
    • ActionScript
      • BindingUtils
  • 11.
    • verticalScrollPosition=" { list1.verticalScrollPosition } " >
  • 12.
    • :
    • ActionScript
    • E 4 X
    = 21 )..first } " />
  • 13. data binding ?
    • source
    • source initialize
    • preinitialize binding -.
  • 14. BindingUtils
    • bindProperty
    • bindSetter
      • ActionScript E4X
      • source property public
  • 15. ?
    • , [ Bindable ] ?
    • EventDispatcher ?
  • 16. ?
    • [ Bindable ], [Bindable(event="eventname")]
    • Read - only get [Bindable]
    • [Bindable]
    • Array
  • 17.
  • 18. ? + + + + + + + ChangeWatcher + + BindingUtils {}
  • 19.
    • :
      • https :// bugs.adobe.com / jira / browse /SDK-14891
      • https :// bugs.adobe.com / jira / browse /SDK-9679
  • 20. Q&A
    • http:// riapriority.com /
    • [email_address]