Application help

Right now I’m starting an application that would turn out to be a chat application. I have the regular buttons needed in a application (close, maximize, minimize), but I can’t seem to get the right AS needed to get the buttons to do what I want them to do. Any help would be appreciated. Maybe a tutorial or something. I tried the ‘removemovieclip’ but then realized i would need to create the whole thing into one MC and didnt want to try if i wasnt sure if it was going to work or not. Any help would be appreciated. Thanks.