Hello,
I am trying to use 2 arrays I generate from a mySql database to
populate an AdvancedDataGrid. I need to be able to use the following
format but replace the static data with the two arrays I receive from
AMFPHP.
(I pulled the following snippet from Peter Ent's blog (thank you Peter!)
[Bindable]
private var companyData:ArrayCollection = new ArrayCollection(
[
{type:"department", title:"Engineering", children: new
ArrayCollection(
[
{type:"employee", name:"Erin M"},
{type:"employee", name:"Ann B"} ] ) },
] );
How could I place the following arrays in the statement above?
Parent = myParentArray
children = myChildrenArray
Thank you,
Terry Allen