package modules.chat.blocks.help
{
	import flash.display.Sprite;
	import flash.events.Event;
	import utils.BxStyle;
	
	dynamic public class BxBoonex extends Sprite
	{
		function BxBoonex()
		{
			this.addEventListener(Event.ADDED_TO_STAGE, onAddToStage);
		}
		
		private function onAddToStage(event:Event):void
		{
			BxStyle.changeTextFormat(this.txtCaption, root.mcStyle.RaySoftwareTitle);
		}
		
		override public function set width(iWidth:Number):void
		{
			var iShiftX:Number = iWidth - this.mcBack.width;
			this.txtCaption.x += iShiftX;
			this.mcBack.width = iWidth;
		}
	}
}