
Код AS3:
var icon:Shape = new Shape();
var backColor:uint = 0x000000;
var foreColor:uint = 0xFFFFFF;
with (icon.graphics)
{
beginFill(backColor), drawRect(0, 0, 16, 16);
beginFill(foreColor), drawRect(2, 2, 12, 12);
beginFill(backColor), drawRect(5, 7, 6, 2);
beginFill(backColor), drawRect(7, 5, 2, 6);
beginFill(backColor), drawRect(6, 0, 4, 5), drawRect(6, 11, 4, 5), drawRect(0, 6, 5, 4), drawRect(11, 6, 5, 4);
beginFill(backColor), drawRect(5, 3, 6, 1), drawRect(5, 12, 6, 1), drawRect(3, 5, 1, 6), drawRect(12, 5, 1, 6);
}
addChild(icon);
icon.x = 50, icon.y = 50;

Код AS3:
var button:Sprite = new Sprite();
button.graphics.beginFill(backColor);
button.graphics.drawRoundRect(0, 0, 50, 32, 8);
addChild(button);
button.x = 50, button.y = 50;
var backColor:uint = 0x000000;
var foreColor:uint = 0xFFFFFF;
var icon:Shape = new Shape();
with (icon.graphics)
{
beginFill(foreColor), moveTo(0, 1);
lineTo(00, 19), curveTo(0.5, 21, 3, 20);
lineTo(18, 12), curveTo(20, 10, 18, 8);
lineTo(03, 00), curveTo(0.5, -1, 0, 1);
}
button.addChild(icon);
icon.x = 18, icon.y = 6;