fLASH ALIGNMENT

Out of context: Reply #4

  • Started
  • Last post
  • 5 Responses
  • F_180

    i assume you also want to publish your swf as a full screen, in which case:

    Stage.scaleMode = "noScale";

    Stage.align = "tl";
    this.onResize = function()
    {
    updateStageStuff();
    }

    Stage.addListener(this);

    _global.updateStageStuff = function()
    {

    var sw = Stage.width;
    var sh = Stage.height;

    bg._width = sw;
    bg._height = sh;
    }

    where “bg” is the instance name of the movie clip you are using as the background.

    note: see the "tl" after stage.Align? thats the alignment value "top left" you can set it to c (center) or tr (top right) or whatever else....

    set the height and width values to 100% in your html and use a little css to set all the borders to 0.

    hope this helps.

View thread