> I think I still don't understand the big trick of value objects. :-(
There really isn't any trick. Maybe that's the trick!
Simply put, a value object is just a container for a bunch of related
properties. Say you wanted to talk about people in your program. You'd
define the properties of a person, and incorporate those properties
within a class that contains nothing but those properties. You'd use
the appropriate data types for each property, of course:
[Bindable]
public class Person {
public var firstName:String;
public var lastName:String;
public var age:Number;
}
Then, when you wanted to talk about a group of people, you'd create
one instance of Person for each person in the group, and store it in
an Array or ArrayCollection. The advantage of this over just using
multidimensional arrays is that you get strict typing and
easier-to-read code.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders