frame_rate_txt.text = String(stage.frameRate);

increase_btn.addEventListener(MouseEvent.CLICK, onIncreaseRateClick);
decrease_btn.addEventListener(MouseEvent.CLICK, onDecreaseRateClick);

function onIncreaseRateClick(evt:MouseEvent):void {
	stage.frameRate += 5;
	frame_rate_txt.text = String(stage.frameRate);
}

function onDecreaseRateClick(evt:MouseEvent):void {
	if (stage.frameRate > 5) {
		stage.frameRate -= 5;
	}
	frame_rate_txt.text = String(stage.frameRate);
}