as3中平铺背景
来源:互联网 发布:聚划算往期数据 编辑:程序博客网 时间:2024/06/05 05:17
var _Width:uint = 16;
var _Height:uint = 12;
function backputhis() {
var x_max = Math.ceil(550/_Width);
var y_max = Math.ceil(400/_Height);
for (var i:uint=0; i<x_max; i++) {
for (var j:uint=0; j<y_max; j++) {
var my_mc:background_mc=new background_mc();
my_mc.x = _Width*i;
my_mc.y = _Height*j;
addChild(my_mc)
}
}
}
backputhis();
//其中_Width、_Height为背景图片宽跟高。550、400为舞台大小。
var _Height:uint = 12;
function backputhis() {
var x_max = Math.ceil(550/_Width);
var y_max = Math.ceil(400/_Height);
for (var i:uint=0; i<x_max; i++) {
for (var j:uint=0; j<y_max; j++) {
var my_mc:background_mc=new background_mc();
my_mc.x = _Width*i;
my_mc.y = _Height*j;
addChild(my_mc)
}
}
}
backputhis();
//其中_Width、_Height为背景图片宽跟高。550、400为舞台大小。
- as3中平铺背景
- As3平铺背景
- 使用画刷在背景中平铺位图
- Android XML中实现按钮点击效果以及背景平铺
- 平铺的背景
- css3 背景平铺
- 图片背景平铺
- android 平铺背景
- CSS 背景平铺
- android 背景平铺
- WPF 背景平铺
- android设置背景平铺
- android设置背景平铺
- silverlight 背景平铺
- 背景平铺和拉伸
- android设置背景平铺
- android设置背景平铺
- android设置背景平铺
- 无法启动SQL Server 2005中的SQL Server(MSSQLSERVER)服务--zt
- 在Eclipse里关联Android源码的
- 批处理经典入门教程!
- 取N个不重复的随机数
- php实例 生活便利小代码,拍照后,批量递归缩放目录图片.
- as3中平铺背景
- SQLite3 使用教学
- 简单闹钟程序
- 进程状态转换图
- 成功的花
- AS3.0清理缓存,彻底清除对象
- 如何使用拼合图播放一个序列帧动画
- Flex和Flash定时器 setTimeout & setInterval 使用要点
- 获取被加载SWF的帧频等信息