摘要:
endpoint<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel"> <endpoint url="http://127.0.0.1/flexweb/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint" /> </channel-definition> <channel-definition id=" 阅读全文
摘要:
使用Cairngorm的第一步是建立框架结构的骨架,包括了三个对象:Model Locater;Service Locator;Front Controller;Model Locator:承载了组件之间的所有的传递的信息和数据,这是一个Bindable(可绑定的)对象。Service Locator:定义了与数据源(Httpservice,Webservice,Remoteobject)之间通讯的界面。Front Controller:建立播送事件(Dispatch event)和命令层(command)之间的对应关系(mapping)。看一下相关的代码:BuddyAppModelLocat 阅读全文