FLASH - fill stage

Out of context: Reply #2

  • Started
  • Last post
  • 10 Responses
  • krust0

    cheers... still doesnt resize tho!

    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    movieXScale = Stage.width/mc_x._width;
    movieYScale = Stage.height/mc_x._height;
    listener = new Object();
    listener.onResize = function() {
    if (movieXScale>=movieYScale) {
    mc_x.width = mc_x.width*movieXScale;
    mc_x.height = mc_x.height*movieXScale;
    } else {
    mc_x.width = mc_x.width*movieYScale;
    mc_x.height = mc_x.height*movieYScale;
    }
    listener.onResize();
    Stage.addListener(listener);
    };
    stop();

View thread