[flexcoders] Re: Flex MDI and View States Error

2008-07-30 Thread Faisal Abid
HEy thanks that worked, I was using Addchild because of this post http://www.returnundefined.com/2008/03/flexmdi-sans-mxml-2 thanks it worked. --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hi Faisal, I think the problem is in the way you are adding the

[flexcoders] Re: Flex MDI and View States Error

2008-07-27 Thread ben.clinkinbeard
Hi Faisal, I think the problem is in the way you are adding the window. Since you are just using addChild(), the window is never assigned a windowManager and I think that is what is null. If you say mdic.windowManager.add( window ), it will addChild() for you and also set the windowManager