MATE flex framework

庄新翰
2023-12-01

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.

 

 类似资料:

相关阅读

相关文章

相关问答