# Automatically sizing Flash SWFs in HTML

**URL:** <https://forum.kirupa.com/t/automatically-sizing-flash-swfs-in-html/258182>\
**Category:** flash\
**Created:** [April 21, 2008, 6:57pm UTC](https://forum.kirupa.com/t/automatically-sizing-flash-swfs-in-html/258182 "2008-04-21T18:57:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibsen](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ibsen](https://forum.kirupa.com/u/ibsen)\
**Post date:** [April 21, 2008, 6:57pm UTC](https://forum.kirupa.com/t/automatically-sizing-flash-swfs-in-html/258182/1 "2008-04-21T18:57:11Z")

</div>

I’m developing Flash for a preexisting CGI application. It loads the SWF into a pre-defined template, which I can edit, that contains almost nothing but the OBJECT and EMBED tags. The trouble is the Flash movies to be loaded vary radically in size, but I need each of them to be displayed at their actual size.

What I want would be similar to the way a JPG in an IMG tag will automatically scale to its own dimensions if the WIDTH and HEIGHT attributes are left off.

Is it possible to do this?
