flash site dimentions

Out of context: Reply #4

  • Started
  • Last post
  • 4 Responses
  • sureshot0

    you can always publish your movie at 100% while using the stage object.

    that will get rid of them scrollbars.

    put this code at the first frame of your main movie:

    Stage.scaleMode = "noScale";
    Stage.align = "T";
    this.onResize = function() {
    updatestageStuff();
    };
    this.onEnterFrame = function() {
    updateStageStuff();
    };
    Stage.addListener(this);
    _global.updateStageStuff = function() {
    var sw = Stage.width;
    var sh = Stage.height;
    bg._width = sw;
    bg._height = sh;
    };
    bg.onResize = function() {
    this._x = Stage.width-this._width-50;
    this._y = Stage.height-this._height-50;
    };
    Stage.addListener(controllo);
    MovieClip.prototype.move = function(x, y) {
    this._x += (x-this._x)/0;
    this._y += (y-this._y)/0;
    };

    *the code can be fucked copy/pasting it here..

View thread