Archive for March 23rd, 2009

ActionScript Convert Array to Tree XML.

Convert array with DB Design ID and ParentID. I wrote it for my work ^^.
This is table structrure.

Hope will useful for anybody.
/**
* Convert array data to tree xml
* @param arr Datasource array
* @param parent Xml node parent
* @param colFieldName_ID Name of field id (it same and use in parent id)
* @param colFieldName_ParentID Name of field [...]

Continue reading »