With Flash, use the following code in your index.html file:
<OBJECT classid= "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=ship_test WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE="YOURMOVIE.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="YOURMOVIE.swf" loop=false quality=high bgcolor=#FFFFFF
WIDTH=100% HEIGHT=100% TYPE= "application/x-shockwave-flash"PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
Copy the above code directly and replace 'YOURMOVIE.swf' with the filename of your movie in both the PARAM tag and the EMBED tag. In the OBJECT tag specifying the width and height to 100% will make the flash file scale to the browser window. You can also use pixel sizing which corresponds to the size of your flash file if you do not want scaling.