In mx Flash MX 2004 (Pro) where can one set the option to stop the flash site from automatically adjusting it’s size to the (internet)browser’s window…

When I open my flash site with (for instance) internet explorer and I increase/decrease the window size, my flash site automatically adjusts its size. Other flash sites do not have this (because it screws up the graphics a little) so could someone please tell my how to stop this…

Sorry for my bad English, I’m Belgian (Dutch) and thanks for your time!


Grtz, DivSen

Dani AI

Generated

Quick summary and what to check first: the browser-visible size of a SWF is decided by the HTML wrapper Flash generates (or the tags you hand-edit) plus the SWF’s scale mode inside the player. was right to point at Publish Settings and was right that the object/embed sizing matters; ’ “100%” tip is the exact thing that makes a movie stretch with the browser. See the HTML tab in Flash’s Publish Settings for the parameters that control this. (kirupa.com)

Quick fixes you can apply now:

  • Easiest (fixed size): set File → Publish Settings → HTML → Dimensions to Pixels and enter the width/height you want, or edit the generated HTML and change the object/embed width/height to pixel values. That makes the SWF stay the same size.
  • Fill the window but don’t scale content: use Dimensions = Percent (100%) and set Scale = No scale (this sets param scale="noscale" in the HTML). That makes the player/container fill the browser but prevents the player from stretching your artwork. (kirupa.com)

If you need the SWF to respond gracefully instead of stretching, handle it in ActionScript (Flash MX 2004 uses AS2): set the stage to no-scale, align it, and listen for resize so you can reposition or resize elements deliberately. Example (AS2):

Stage.scaleMode = "noScale";
Stage.align = "TL";

var resizeListener = new Object();
resizeListener.onResize = function() {
  // reposition or resize clips using Stage.width / Stage.height
  _root.center_mc._x = Math.round((Stage.width - _root.center_mc._width)/2);
};
Stage.addListener(resizeListener);

This prevents automatic distortion and gives you control. (open-flash.github.io)

Final note: Flash Player is retired and modern browsers block it; for any production site today consider migrating to HTML5/Canvas or using an emulator like Ruffle for legacy content. If this is an experiment/local test, the steps above will stop automatic resizing. (adobe.com)

Recommended Answers

All 6 Replies

In mx Flash MX 2004 (Pro) where can one set the option to stop the flash site from automatically adjusting it’s size to the (internet)browser’s window…

When I open my flash site with (for instance) internet explorer and I increase/decrease the window size, my flash site automatically adjusts its size. Other flash sites do not have this (because it screws up the graphics a little) so could someone please tell my how to stop this…

Sorry for my bad English, I’m Belgian (Dutch) and thanks for your time!


Grtz, DivSen

Just use the publisher settings.

And size the window to how you want.

that works for the HTML file,
but where in the FLASH publisher settings can you find that option?

thx

I don't believe that you can have Flash force to be a certain size. What you need to do is put the Flash inside an element that you can set to a certain size. The best way to do this is to set the height and width elements of the object tag that you are using to add the Flash file to the site.

I don't believe that you can have Flash force to be a certain size. What you need to do is put the Flash inside an element that you can set to a certain size. The best way to do this is to set the height and width elements of the object tag that you are using to add the Flash file to the site.

100% correct.

I am saying for the Publisher settings and the resizing of your document use the publishers settings.

ANYTHING else must be done at the elemet level.

You can also edit the html after publish the flash, Put 100% in html code

ok thx for your time guys

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.