var panel:Panel = new Panel();
panel.title = source.displayValue + "-" + data.displayValue;
panel.percentWidth = 100;
var upButton:Button = new Button();
// upButton.setStyle("icon", upIcon);
upButton.label="test";
var downButton:Button = new Button();
var closeButton:Button = new Button();
var controlBar:ControlBar = new ControlBar();
controlBar.addChild(upButton);
controlBar.addChild(downButton);
controlBar.addChild(closeButton);
controlBar.height = 50;
//panel.addChild(chart);
panel.addChild(controlBar);
I Have the above code, looking at all the examples I canf ind online I have done everything correctly, yet, i still dont have my control bar
when inspection the number of children each element has in eclipse, the control bar numChildren property goes up, but the panel doesn’t so its as if its not getting added. Please help 😐
Flex 3 version of my previous answer: