I'm trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can't seem to get 开发者_如何学运维it working.
<mx:MenuBar id="menuBar" labelField="@label" dataProvider="{menus}" itemRenderer="mx.controls.LinkButton">
</mx:MenuBar>
Use the MenuBarItemRenderer property instead of itemRenderer, which is not defined on the MenuBar class and will most likely throw a compile time error.
If that is not your solution, you'll have to quantify "can't seem to get it working." Are you seeing a compile errors? Or runtime error? Or experiencing unexpected behavior?
精彩评论