Показать сообщение отдельно
Старый 14.08.2011, 02:07
3p.station вне форума Посмотреть профиль Отправить личное сообщение для 3p.station Найти все сообщения от 3p.station
  № 4  
Ответить с цитированием
3p.station
 
Аватар для 3p.station

блогер
Регистрация: Oct 2009
Адрес: кочевник. Киев
Сообщений: 453
Записей в блоге: 5
самое простое
Код AS3:
package guiComponents.graphics
{
 
	public class PaneStyle
	{
		public var topColor:uint = 0xC0C0C0;
		public var bottomColor:uint = 0xCCCCCC;
		public var borderWidth:uint = 0;
		public var borderColor:uint = 0xBBBBBB;
		public var leftTopCorner:uint = 0;
		public var rightTopCorner:uint = 0;
		public var leftBottomCorner:uint = 0;
		public var rightBotomCorner:uint = 0;
		public var gradientAngle:uint = 90;
		public var hideBottomBorder:Boolean = false;
 
		public function clone():PaneStyle
		{
			var panestyle:PaneStyle = new PaneStyle();
			panestyle.topColor = topColor;
			panestyle.bottomColor = bottomColor;
			panestyle.borderWidth = borderWidth;
			panestyle.borderColor = borderColor;
			panestyle.leftTopCorner = leftTopCorner;
			panestyle.rightTopCorner = rightTopCorner;
			panestyle.leftBottomCorner = leftBottomCorner;
			panestyle.rightBotomCorner = rightBotomCorner;
			panestyle.gradientAngle = gradientAngle;
			panestyle.hideBottomBorder = hideBottomBorder;
 
			return panestyle;
		}
 
	}//end class
}//end package
Добавлено через 2 минуты
у Rectangle есть clone() например
http://etcs.ru/as3_tips_and_tricks/d...ith_bytearray/
__________________
мира и гармонии


Последний раз редактировалось 3p.station; 14.08.2011 в 02:12.