Header and footer in Flash AS3

[FONT=Helvetica]I’ve been trying to figure out how to do a header and a footer in Flash, but without success. The tutorials I have found are either of the mark or above my level as a Flash(CS5) and AS3 beginner.[/FONT]

The attached file should give an idea of what I’m hoping to do. I want the black panel at the top to stretch, in width only, to fill out the entire window if the window is bigger than the stage. That goes for the grey panel at the bottom as well. Plus I want this bottom panel to be locked to the bottom making it impossible to scroll below the panel.

The texts and image (marked with a blue square) should not stretch. They are supposed to be centered in the window. I think I could solve that by adding <center></center> in the body of the html-file.

I would much appreciate if someone could help me out with this obstacle. The more detailed the better. I don’t know if I should stretch the shape or solve this using tiles. Whatever is the simplest solution.