# How to manage the parent child display of data.....urgent help required

**URL:** <https://forum.kirupa.com/t/how-to-manage-the-parent-child-display-of-data-urgent-help-required/259932>\
**Category:** Uncategorized\
**Created:** [May 10, 2008, 11:50am UTC](https://forum.kirupa.com/t/how-to-manage-the-parent-child-display-of-data-urgent-help-required/259932 "2008-05-10T11:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![proxycon](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@proxycon](https://forum.kirupa.com/u/proxycon)\
**Post date:** [May 10, 2008, 11:50am UTC](https://forum.kirupa.com/t/how-to-manage-the-parent-child-display-of-data-urgent-help-required/259932/1 "2008-05-10T11:50:26Z")

</div>

Hi

What I have to do is to display this format of data into parent child format using actionscript.Can anyone help me…

eg:  
i have

Fruit:Apple  
Fruit:Mango  
Apple:Brand1  
Apple:Brand2  
Apple:Brand3  
Mango:Brand1  
Brand1:Subbrand1  
…  
…  
The data could be anything but only two items in a row…so i have to pick up consecutive parent and childs and organise them.

I need the Output as:  
Fruit  
\_\_\_\_Apple  
\_\_\_\_Mango  
Apple  
\_\_\_\_Brand1  
\_\_\_\_Brand2  
\_\_\_\_Brand3  
Mango  
\_\_\_\_\_Brand1  
Brand1  
\_\_\_\_\_Subbrand1
