Take a look at ObjectProxy, it does a bit of what Tom has suggested, and gives hints into how to hook into the construction of properties.
Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom Chiverton Sent: 26 January 2010 16:47 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to create Value Objects dynamically at run time? On Tuesday 26 Jan 2010, gilbert_mizrahi wrote: > Hence, I would like to create value objects dynamically, but I don't know > how. You can add properties dynamincaly: var x:Object=new Object; x.foo=3; x.bar='baz'; You probably want some sort of custom class that can can track what fields are added and their expected types, but getting the values in and out is easy enough.