I have no idea how you'd go about that in codebehind, however...
If you show the SWF in HTML, you can have some javascript check the offset width/height of the element that contains the SWF and set those values to some hidden form elements so you can post them back to the server. Potentially you could do all of this with some javascript that gets called by the onChange client handler of the file input element before the user uploads the SWF.
-
Peter