Have you found a solution for this?

I'm having similar problem. I have set my custom data descriptor to my
menu before showing it, however the sub-menu that is automatically
created, is having the DefaultDataDescriptor assigned to it. This
causes the sub-menu to fail to show.

I am not sure why your data descriptor methods were not being called,
my menu data provider is an ArrayCollection of objects, and my methods
are being called. You might give that a shot.

PW

--- In [email protected], "Bastian Waidelich" <[EMAIL PROTECTED]> 
wrote:
>
> Hello group,
> 
> Does anybody have a working example of a MenuBar with a custom
> dataDescriptor?
> According to the example "Creating a custom data descriptor" in the
> Flex documentation I have created a Class which implements
> IMenuDataDescriptor. Now when my dataSource is an Array of objects
> only the method "isEnabled" of the dataDescriptor will be called..
> When the dataSource is XML-based, the method "getChildren" is called
> at least - But only once.
> 
> What I need is a Menu which only shows e.g. level 1 to 3 of the
> dataSource.
> Some help would be greatly appreciated, this hast cost me some
> sleepless nights already - Flex is a great thing indeed, but sometimes
> it's just killing me ;)
>


Reply via email to