Aligning content in a browser

does anyone know if this is possible:
I have a swf and a html with that swf aligned in the midlle. In the swf there is a bar that i need to allign to the top of the browser window. Is there a way of detecting or aligning and resizing flash content depending on the browser size from within itself?

If I didn’t explain this well enough, let me know :slight_smile:
thanks for any help