View Full Version : avoiding swf shrinkage

05-12-2008, 04:42 AM

how can I keep my embedded swf file from shrinking when the browser window is scaled down?

I set the height in the following code but it doesnt keep the swf from shrinking when the browser size is reduced. :confused:

<object id="Pictures" width="100%" height="90">
<param name="movie" value="ImageStrip.swf">
<embed src="ImageStrip.swf" width="100%" height="90">

05-12-2008, 07:59 AM
You shouldn't mix a percentage and a pixel value like that. Some browsers can't handle that and its just a possible disaster. You have to decide to use either a size based on the width or height. Right now the browser is sticking to the percentages I'm guessing.

Also, you should embed your flash video properly instead of using the <embed>. Read this thread for more information.

05-13-2008, 01:51 AM
which script, static or dynamic, will allow the swf to be more easily viewed in IE?

05-13-2008, 07:44 AM
Well generally I would say use the Static method, but if you are trying to avoid the 'Click to Activate This Plugin' annoyance, the dynamic method gets around that but I believe invalidates the code.

Here is a great article about more detailed things. http://www.alistapart.com/articles/flashembedcagematch/