hi, i'm just wondering if anyone know's how i would expand a flash movie without enlarging the contents inside of it, so basically i want the flash movie to take up the whole browser window, but doesn't want to stretch the movie, so that i can do some transition effects. thanks in advance.

Dani AI

Generated

A concise, reliable way to make a SWF fill the browser without scaling its artwork is to stop Flash from scaling the Stage and then handle layout yourself. Set the HTML/container size to 100% so the SWF matches the window, disable automatic scaling on the Stage, and reposition or letterbox content on resize. This preserves the original pixel sizes for transitions and animations while allowing the movie to occupy the full browser area.

Typical ActionScript 3 pattern (for reference) is to disable stage scaling and listen for resize events:

import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.events.Event;

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

stage.addEventListener(Event.RESIZE, onResize);

function onResize(e:Event):void {
    // use stage.stageWidth and stage.stageHeight to reposition or center content
}

When embedding, pass a no-scale parameter (or use a helper like SWFObject) and ensure the embed/object container is 100% by 100%. After disabling scaling you must decide how to handle extra space: center the movie, add letterboxing bars, or scale selected assets manually based on the new stage size.

Caveat: Flash is deprecated in modern browsers. For long-term projects consider exporting to HTML5 Canvas (Adobe Animate / CreateJS) or using an emulator for legacy SWFs. Official references: StageScaleMode documentation and the SWFObject project. This approach should address the original issue reported by while giving a path for future-proofing.

nvm, all solved. thnx 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.