COM.FLASHVAN.GRAPHIC uses small example

xiaoxiao2021-03-06  57

This is a small example of using my Graphic class in accordance with V2 button components:

Pre {Font-Family: "Courier New", Courier, Arial; font-size: 12px;}

. galan {color: # 000000;

. readyword {color: # 993300;

.IDENTIFIER {color: # 000087;

.properties {color: # 000087;

{Color: # 000087;

.linecomment, .bockcomment {color: # 808080;

. String {color: # 0000ff;}

Import com.flashvan.graphic;

Var g: graphic = graphic.create (this, "button", 1);

VAR x = 50;

VAR Y = 50;

VAR W = 100;

Var h = 20;

Var themecol = [0xeeeeee, 0x86c2ff];

g.drawroundRect (x, y, w, h, 5, 0x999999, 100); // outerborder

g.drawroundRect (x 1, y 1, W-2, H-2, 4, [0x333333, 0xFCFCFC], 100, 0, "Radial");

g.drawroundRect (x 1, y 1, W-2, H-2, 4, Themecol, 50);

g.drawroundRect (x 2, y 2, W-4, H-4, 3, [0x000000, 0xDadada], 100, 0, "Radial");

G. DrawroundRect (x, y, w, h, 5, themecol, 40); // Outerborder

g.drawroundRect (x 3, y 3, W-6, H-6, 2, 0xFfffff, 100); // highlight

g.drawroundRect (x 3, y 4, W-6, H-7, 2, THEMECOL, 20); // Face

转载请注明原文地址:https://www.9cbs.com/read-114064.html

New Post(0)