Currently the flexmdi MDIWindow class does not have a way to completely override the default buttons and behaviours in one fell swoop. This should be changing by the release of flexmdi 2 which is scheduled for Adobe MAX 2007 in Chicago.
For most developers adding one or two different buttons is all that will be needed. And this is done quite simply.
You will need to to:
1. create your own Window class that extends MDIWindow
2. override protected function createChildren()
3. create your button and add any listeners you want on it
4. add it to the button contols by calling the addControl(btn,index) of the MDIWindow class.
An example can be found here :
Hi
I have downloaded the source. i couldnt run the addbuttton example. Error rise in window.as file.
//code
this.addControl(menuBtn,0);
//code
Anyone tried and solved the issue. Please help me to solve this erroe. Thanks
Posted by: Karel | May 06, 2008 at 10:29 PM
@Karel, The demo I have listed was created with an older version of flexmdi. Make sure your using the new version that is apart of http://flexlib.googlecode.com/ and also you can post your questions on the discussion board there to get more info from the flexlib community.
Posted by: Brian Holmes | May 07, 2008 at 11:18 AM