« flexmdi Effects | Main | flexmdi Taskbar Proof of Concept »

September 11, 2007

creating custom buttons for flexmdi

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 :

http://mxmvc.com/flexmdi/explorer/MDIExampleAddButtons.html

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/2357234/21518575

Listed below are links to weblogs that reference creating custom buttons for flexmdi:

Comments

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

@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.

Post a comment

If you have a TypeKey or TypePad account, please Sign In