All pastes #406755 Raw Edit

onResize

public text v1 · immutable
·published 2007-03-22 17:48 UTC
rendered paste body
Stage.scaleMode = 'noscale';
Stage.align     = 'TL';

stageListener = new Object();
stageListener.onResize = function() {
	textChat._x      = 5;
	textChat._y      = 5;
	textChat._width  = Stage.width - 165;
	textChat._height = Stage.height - 40;
	
	listNames._x      = Stage.width - 155;
	listNames._y      = 5;
	listNames._width  = 150;
	listNames._height = Stage.height - 40;
	
	textInput._x      = 5;
	textInput._y      = Stage.height - 30;
	textInput._width  = Stage.width - 165;
	textInput._height = 25;
	
	buttonSend._x      = Stage.width - 155;
	buttonSend._y      = Stage.height - 30;
	buttonSend._width  = 150;
	buttonSend._height = 25;
}
Stage.addListener(stageListener);
stageListener.onResize();