Communication between Flex module and Application

后端 未结 3 1506
Happy的楠姐
Happy的楠姐 2021-01-27 23:36

Ok, modules in Flex are popular but I have no idea why documentation and examples on the different uses of Flex modules can be so scarce.

Anyway, for this question, I wi

3条回答
  •  庸人自扰
    2021-01-28 00:05

    We solved this problem with the use of Cairngorm v2. Think of it as a message bus for ActionScript, one of several. In your departmentDropDownList_changeHandler method we would create a DeptChanged event with the ID as the payload, and send it on the bus to any and all subscribers to that message type. It worked pretty well for us, and made things more event driven, which in some circles is considered a good thing in itself.

提交回复
热议问题