Rich Internet Applications and Flex


                       Vijay Kalangi
•   Create your custom classes


    •   Value objects - store/retrieve data
•   Create a Product Class


•   static factory


•   Populate Product instance with data


•   ShoppingCartItem Class


•   ShoppingCart Class


•   Loop through Array


•   Adding and updating items in ShoppingCart
•   [Bindable] and {}; redo in actionscript


•   Flex writes code on behalf of you when you use these constructs


•   Binding is just event dispatching and listening behind scenes


•   For databinding to work properly, objects must be able to dispatch
    events when something changes


•   Then what about [Bindable] in Product?


•   How about Array? Source code NOT inside your project
•   ArrayCollection and ArrayList, XMLListCollection Proxy for Array and
    XMLList and they can dispatch events!


•   Sorting an ArrayCollection - pg 190


•   Cursors


    •   remove / find


•   Filters

Rich Internet Applications and Flex - 4

  • 1.
    Rich Internet Applicationsand Flex Vijay Kalangi
  • 2.
    Create your custom classes • Value objects - store/retrieve data
  • 3.
    Create a Product Class • static factory • Populate Product instance with data • ShoppingCartItem Class • ShoppingCart Class • Loop through Array • Adding and updating items in ShoppingCart
  • 4.
    [Bindable] and {}; redo in actionscript • Flex writes code on behalf of you when you use these constructs • Binding is just event dispatching and listening behind scenes • For databinding to work properly, objects must be able to dispatch events when something changes • Then what about [Bindable] in Product? • How about Array? Source code NOT inside your project
  • 5.
    ArrayCollection and ArrayList, XMLListCollection Proxy for Array and XMLList and they can dispatch events! • Sorting an ArrayCollection - pg 190 • Cursors • remove / find • Filters

Editor's Notes