« 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/services/trackback/6a00d8341c046453ef00e54edb80e78833

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.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment