Copy link to clipboard
Copied
I uploaded a swf file with dreamweaver as a stand alone window and it works fine. How do I get the swf file to scale larger or smaller as the user adjusts their browser window larger and smaller? I would like to get the swf file to scale along with the browser window. I posted this in dreamweaver but was told this is an action script issue.
I found a simple solution, and I believe it is what you are looking for.
1. In Flash, go to File>Publish Settings
2. Click on the HTML Tab
3. Where is says Dimensions, select Percent
4. Though it is probably default, make sure the width and height are both set to 100.
5. Click ok then go to File>Publish
Now your movie should scale with the browser window.
If you do not have Flash, then you can simple work with this sample code below:
<object width="100%" height="100%" id="xyz" align="middle">
<param
Copy link to clipboard
Copied
I found a simple solution, and I believe it is what you are looking for.
1. In Flash, go to File>Publish Settings
2. Click on the HTML Tab
3. Where is says Dimensions, select Percent
4. Though it is probably default, make sure the width and height are both set to 100.
5. Click ok then go to File>Publish
Now your movie should scale with the browser window.
If you do not have Flash, then you can simple work with this sample code below:
<object width="100%" height="100%" id="xyz" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="xyz.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="xyz.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="xyz"
align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Notice how width and height are set to "100%"? That's all you need.
Copy link to clipboard
Copied
Thanks for the quick reply. I tried this and it got me closer to what
I need but when I enlarge the swf file with this setting, I can see
the items off stage. It's a step in the right direction but what I am
looking for is just the flash file stage enlarging uniformly.
Copy link to clipboard
Copied
Ok, I feel pretty dumb, sirbgd your answer was exactly the right
answer. After implementing your solution I didn't pay attention to
where the export was being sent and opened up an old file thinking it
was the correction. This works great and thank you for such a quick
reply.
Copy link to clipboard
Copied
This answer only provides a plain Flash generated html page with all of the code in the HEAD. How do I edit it like a normal html page to add my own elements to it?
I have tried every avenue possible to place my swf file into a Dreamweaver liquid template, only to find the swf never scales when the browser window changes.
Copy link to clipboard
Copied
an easier way would be to just set your margins to 0....that will still have it scale as well....
you can also set the appropriate size in the html ( like 900x600, and keep margins at 0 )
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more