The XML too will have the flat data whereas I need nested one. MenuBar should
look like this.
File List
CustFile Transaction
Security
chngPwd
--- In [email protected], Alex Harui <aha...@...> wrote:
>
> If you have XML to get an XMLList, I think you want to just use the XML and
> not convert to an ArrayCollection
>
>
> On 4/1/10 3:04 PM, "md_ars" <mdar...@...> wrote:
>
>
>
>
>
>
>
>
> Thanks Alex for the reply.
> Before assigning it to menuBar I need to make the menu hierarchy. I am
> parsing XMLList to ArrayCollection to get the data in the format given below.
> I assigned that ArrayCollection to the MenuBar but it gave me menu
> horizontally whereas I need this in hierarchy based on ID and PARENT_ID
> values.
>
> ID LABEL MENU_LABEL STATUS PARENT_ID
>
> 1 File TOP_LEVEL ENABLED
> 2 CustFile ROOT DISABLED 1
> 3 Security SUB_MENU ENABLED 1
> 5 AccessOpt ROOT DISABLED 3
> 6 UserSetup ROOT DISABLED 3
> 7 ChngPwd ROOT ENABLED 3
> 9 List TOP_LEVEL ENABLED
> 13 Locations ROOT DISABLED 9
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>