Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

swf files that scale with the browser

New Here ,
Aug 11, 2009 Aug 11, 2009

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.

TOPICS
ActionScript
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Aug 12, 2009 Aug 12, 2009

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

...
Translate
Explorer ,
Aug 12, 2009 Aug 12, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 13, 2009 Aug 13, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2009 Aug 19, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 09, 2010 Jun 09, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 15, 2010 Jun 15, 2010
LATEST

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 )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines