Getting the user's screen resolution

Does anyone know how to do this? I need to base a movieclip’s width and height off of the resolution the user is running. Is this possible with Flash MX 2004? and if so, how reliable and accurate is the function that does this?