Hi,

I had a working MenuBar until 
I had to change my application
structure. Now I can't bind the 
dataProvider anymore in the menuBar's
mxml tag. 

So I tried something like this...

[Bindable]
private var menuBarCollection:XMLListCollection;

private function setUpMenuBar(event:Event):void{
  menuBarCollection = new XMLListCollection(menubarList);
  menuBarRef.dataProvider = menuBarCollection;
}

The function is called on the MenuBar's
Initialize event and menuBarList is
a XMLList, that was working fine before.

I also tried to use other events as well as 
things like invalidateNow()
after I set the dataProvider, but the 
MenuBar doesn't get any items!? 

Any ideas would be appreciated.

Thanks, Max

Reply via email to