Stage.align = "TL"; Stage.scaleMode = "noScale" obj = new Object (); obj.onResize = function () { xchInputBox.__width = xch.__height = Stage.width; xchInputBox.__height = xch.__height = Stage.height; // re-render the component xchInputBox.init(); } Stage.addListener (obj);