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.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值