- UID
- 52323
- 帖子
- 11
- 精华
- 0
- 积分
- 38
- 资源币
- 1
- 阅读权限
- 2
- 注册时间
- 2011-10-1
- 最后登录
- 2011-10-2
|
36楼
发表于 2011-10-2 15:03
| 只看该作者
var screen_w=System.capabilities.screenResolutionX;
var screen_h=System.capabilities.screenResolutionY;
var back=this.createEmptyMovieClip("back",0);
this.back.swapDepths(this.movie);
drawrect(back,(800-screen_w)/2-2,(600-screen_h)/2-2,screen_w+4,screen_h+4,100,0x000000);
function drawrect(mc, x, y, w, h,al,colorr,lcolor,lwidth){
if(color==undefined){
color=0x000000;
}
if(lwidth==undefined){
lwidth=1;
}
if(lcolor!=undefined){
mc.lineStyle(lwidth,lcolor);
}
mc.beginFill(color, al);
mc.moveTo(x, y);
mc.lineTo(x+w, y);
mc.lineTo(x+w, y+h);
mc.lineTo(x, y+h);
mc.lineTo(x, y);
mc.endFill();
} |
|