In order to include the minimize effect to your window using flex all you have to do is to make different states to get the minimize functionality in action. One example I am showing you as under in flash form. Under that flash you will get the download link for the code.
Link to download the code is coming soon......