1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Flash Tip: Expand Your Flash Movie to Fit Any Browser


1 of 2

Details I
Flash Tip: Expand Your Flash Movie to Fit Any Browser
Generally your Flash movies publish in the size that you set for your document when you first begin building the movie; when the movie is opened alone in the Flash player, it will display at that size by default. For web page display, however, you can change this by making small adjustments to the HTML code that embeds the Flash movie into your page.

When you publish an HTML document from Flash, Flash automatically regenerates an enormous swatch of code:

<HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <TITLE>Lesson</TITLE> </HEAD> <BODY bgcolor="#000000"> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="775" HEIGHT="612" id="Lesson" ALIGN=""> <PARAM NAME=movie VALUE="Lesson.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="Lesson.swf" quality=high bgcolor=#000000 WIDTH="640" HEIGHT="480" NAME="Lesson" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </BODY> </HTML>

The part you need to worry about is the bolded area.

©2014 About.com. All rights reserved.