Help, with reszing

hey guys. ive searched the forums and google and ive learned about a code that can detect the size of the users monitor resolution and i was wonder is there nething i can code so that my swf will detect the users monitor resolution and resize everything to fit? i know aout the System. option but how would i make it resize to fit the screen.

and remember this is just a plain swf not a html page
thanks