CSDN博客

img flashvan

com.flashvan.Graphic运用小示例

发表于2004/9/23 3:13:00  1288人阅读

这是用我的Graphic类依照v2按钮组件画的小示例:
 

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
0 0

相关博文

我的热门文章

img
取 消
img