View Single Post
Old 08-14-2009, 01:35 PM   PM User | #3
csr_1978
New to the CF scene

 
Join Date: Aug 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
csr_1978 is an unknown quantity at this point
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 View Post
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);
csr_1978 is offline   Reply With Quote