adding
addChild(myComp);
works but this adds component1 inside component2 so i get two panels displayed one from component1 and other from component2 but i just want to display component1. is there any way that i can just forward it to component1?
Thanks,
Quote:
Originally Posted by Inigoesdr
Unless I'm missing something, or you are doing something clever that you didn't post, you have to add the component to the stage before it will display. It's not enough just to instantiate it, Flex has to be told to draw it. This would usually go something like:
Code:
private var myComp:MyCoolComponent = new MyCoolComponent();
myComp.whatever = 'some setting';
addChild(myComp);
|