MATE flex framework

This tutorial explains how to get started with Mate. As an example, we'll create a stock quote retrieval screen which sends the quote symbol to the server, receives the current price and stores it in the model for the view to show.

All Mate projects must have:

  1. One or more events (custom or built-in)
  2. One or more Event Maps

Typically, the basic steps to create a Mate project are:

  1. Add the compiled framework code to your project (Mate.swc).
  2. Create a file that will be the EventMap.
  3. Include the event map in your main Application file.
  4. Create a custom event.
  5. Somewhere, dispatch that event.
  6. Add EventHandlers in your event map that listen for the event type you dispatched.
  7. Execute some actions inside the EventHandlers block (ie: call the server, store data, etc).
  8. Repeat 4-7 for every event you need.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章