1 Reply Latest reply on Jul 21, 2008 5:31 PM by cnunciato

    Height and width of a Application

    realtime158
      Was wondering how do i change the width and height in a a application in ActionScript code of a mx:Application.
        • 1. Re: Height and width of a Application
          cnunciato
          I guess it depends on the context. Are you trying to change the size of the player itself, or just to change the height and width of the application running inside the player?

          This should work, for example -- first grabbing the height and width of the player, then appying those values as the height and width of the Application: Called from within an mx:Script block in your main Application file, for example:

          var playerHeight:Number = parent.height;
          var playerWidth:Number = parent.width;

          this.width = playerWidth;
          this.height = playerHeight;

          Is this what you're looking for?

          Chris