Dave & Jason, THANKS !!
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Watts Sent: dinsdag 7 september 2010 23:42 To: Flash Coders List Subject: Re: [Flashcoders] parsing multi-dimensional array > 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 Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3120 - datum van uitgifte: 09/07/10 20:43:00 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

