Chapter 4. Connecting to web services
This chapter covers
- Model View Presenter
- Event dispatching and handling
- Calling a web service
- Interfaces and views
In chapter 3 you designed the UI for the Flex application, but it won’t be useful until it can communicate with a server-side component. In this chapter you’re going to continue building up the client-side application. Many Flex books attempt to hide complexity when dealing with client-side code and ActionScript, usually by having you create all your WebService components and event handling code in your MXML files. This solution, as many developers agree, does not scale well and quickly shows its warts in any but the most trivial application.
We’ve decided instead to architect the client-side ...