Minimize a SWF?

I need to minimize a flashMx swf with my own button using actionScript… ?

I saw a swf that can minimize his window and convert itself in a little icon… ?

and i want to do this, if someone now…

                Thanks.... Franklin

If you’re talking about a clip in an swf, that’s easy:
put a stop at the open state where the content is displayed, then after that, add a tween to a minimized “icon” with another stop at the end, and when you press the button, clip.play and maybe also change its_x and _y if you need to move it somewhere…

If your question was s’thing else, re-explain…