самое простое

Код 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/