O'Reilly logo

Professional Cairngorm™ by Jeremy Wischusen

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

9.5. Summary

In this chapter you looked at the interfaces associated with value objects and the uses of value objects.

Value objects (VOs) are also sometimes known as data transfer objects (DTOs). Value objects are used to transfer data between software application subsystems.

A value object can mirror a server-side object using the RemoteClass metadata tag, which Flex uses to preserve type information when serializing a class using the Action Message Format (AMF). You can also use this metadata tag to represent a server-side object by specifying the full package of the remote class as the value of the alias in the RemoteClass metadata tag.

You may see value objects in a package named vo, valueObjects, or something similar. Regardless of the location, the general naming convention is to prefix the capital letters VO with the name of the object represented (e.g., ProductVO).

Using value objects generally involves having a public variable on an event class that is then accessed via the command class and passed to a delegate class if necessary.

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