FLASH HELP!!

Out of context: Reply #2

  • Started
  • Last post
  • 16 Responses
  • lucky690

    Last line.. CONTENT is the palce where you want to attach your design into...

    this script will keep the Flash movie centred & unscalable inside a fullscreen browser window.

    put these the first frame, of your root swf.

    // CENTRE & RESIZE INIT VALUES
    _focusrect = false;
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    Stage.showMenu = false;
    Stage.addListener(this);

    // CENTRE & RESIZE FUNCTION
    var contX:Number;
    var contY:Number;

    this.onResize = function(){

    // align the stage
    container_mc._x = int((Stage.width - 800) / 2);//
    container_mc._y = int((Stage.height - 600) / 2);//

    contX = container_mc._x;
    contY = container_mc._y;

    }

    // CREATE & CENTRE BASE MOVIE
    this.createEmptyMovieClip("conta...

    this.container_mc._x = int((Stage.width - 800) / 2);
    this.container_mc._y = int((Stage.height - 600) / 2);

    contX = this.container_mc._x;
    contY = this.container_mc._y;

    // CREATE CONTENT HOLDER
    this.container_mc.createEmptyMov...
    _global.CONTENT = this.container_mc.content_mc;

    let me know if you r having troubles...

View thread