O'Reilly logo

Flex on Java by Jeremy Anderson, BJ Allmon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required