更改flash as3.0 修改显示层级
//更改flash as3.0 修改显示层级var bg:Sprite = new Sprite();
bg.graphics.beginFill(0xececec);
bg.graphics.drawRect(0,0,400,300);
addChild(bg);
///////////////////////////
var s:Sprite = new Sprite();
s.graphics.beginFill(0xff0000);
s.graphics.drawCircle(100,200,100);
addChild(s);
setChildIndex(s,1);
- 上一篇:flash as3.0 添加随时颜色小图片
- 下一篇:flash 文件上传的问题