Thanks all for the support..you are very patient!!! is it correct that i create a custom object and dut put it in my array like previous one? the array is passed to a datagrid and the set the dataprovider properties. i use this shortcut because i didn'find the manner to create a personal data provider (dataprovider in datagrid are properties and not class)..
Regards Lorenzo --- In [email protected], "Manish Jethani" <manish.jeth...@...> wrote: > > On Thu, Dec 18, 2008 at 11:32 PM, Manish Jethani > <manish.jeth...@...> wrote: > > On Thu, Dec 18, 2008 at 10:56 PM, lorenzo.boaro <lore...@...> wrote: > > > >> when i try to rint the object fields are not in the correct order... > >> tuesday 45 > >> production test > >> monday 23 > > > > The order cannot be guaranteed in a for loop. You can instead store > > the fields as an array of name-value pairs and iterate over them as an > > array. > > > > for each (var f:Object in obj.fields) /* obj.fields is Array */ > > trace(f.name + ": " + f.value); > > You can also create a custom Proxy subclass that guarantees the order. > You'd override the setProperty and nextName methods for that. See the > flash.utils.Proxy class > > Manish >

