FLASH - fill stage

Out of context: Reply #4

  • Started
  • Last post
  • 10 Responses
  • ********
    0

    Try this:

    var stageL:Object = new Object();

    stageL.onResize = function() {

    movieXScale = Stage.width / mc_x._width;
    movieYScale = Stage.height / mc_x._height;

    if (movieXScale>=movieY Scale) {
    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;
    }

    Stage.addListener(stageL);

View thread