大约有 1,477 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1174) Laya2.0_api(195) Laya3.0_api(48) Laya_示例(19) Laya2.0_文档(15) Laya3.0_文档(13) Laya2.0_示例(10) laya_api(3)
...147483647,0,30,30);//游动 // anifish.player.playByFrame(0,1.0,2147483647,40,72,30);//交互 这个就生效,但是截图的就说没有这个方法。为什么说没有 playByFrame方法 附件 : --> 2017-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20170926
... sp = new Laya.Sprite(); Laya.stage.addChild(sp); //将sp移动到横坐标400,纵坐标300的位置 sp.pos(400,300); //绘制两条在sp的原点交叉的直线 sp.graphics.drawLine(-50,0,50,0,'#00ff00',1); sp.graphics.drawLine(0,-50,0,50,'#00ff00',1); //绘制以sp的原点为中心,半径40...
来源: Laya_社区 发布时间: 20180524
...试看下,我的测试例子是: var bmd1:BitmapData = new BitmapData(40, 40, false, 0x000000FF); var bmd2:BitmapData = new BitmapData(80, 40, false, 0x0000CC44); var rect:Rectangle = new Rectangle(0, 0, 20, 20); var pt:Point = new Point(10, 10); bmd2.copyPixels(bmd1, rect, pt); var bm1:Bitmap =...
来源: Laya_社区 发布时间: 20151105
...发者提供HTML5开发技术方案!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; //设置文本为多行文本 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; Laya.stage.addChild(txt); } })();module laya { import...
来源: Laya_示例 发布时间: 20251130
...发者提供HTML5开发技术方案!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; // 设置文本是否自动换行 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; } } new Text_Scroll();module laya { import Stage ...
来源: Laya2.0_示例 发布时间: 20251130
...tton'; button.value ='逐加'; button.src = "xxxxx"; button.style.width = '40px'; button.style.height = '40px'; button.style.background = "../../../bin/res/atlas/assets.png"; // mapDivx.appendChild(input); mapDivx.appendChild(button); 以上代码 全部信息 都可以显示 button.style.backgro...
来源: Laya_社区 发布时间: 20170619
... this.graphics.save(); this.graphics.alpha(0.5); this.graphics.drawRect(-40, -110, 80, 110, "#ffcc00"); this.graphics.restore(); //再画一个红色小半透明区域 this.graphics.save(); this.graphics.alpha(0.7); this.graphics.drawRect(40, -110, 80, 110, "#ff0000"); this.graphics.restore();4个...
来源: Laya_社区 发布时间: 20161228
... 报错 ImageData is not defined? 问题状态 最新活动: 2017-12-01 12:40 浏览: 980 关注: 2 人 y362526965 • 2017-12-01 11:59 我新建的一个空的UI示例项目,也是报同样的错误 wudi199553 • 2017-12-01 12:01 你把你新建的项目打包过来,我们看看 y362526965 •...
来源: Laya_社区 发布时间: 20171201
...ML5开发技术方案!"; //设置宽度,高度自动匹配 txt.width = 400; //自动换行 txt.wordWrap = true; txt.align = "center"; txt.fontSize = 40; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.bold = true; txt.leading = 5; //设置描边属性 txt.stroke = 2; txt.strokeColor = "...
来源: Laya_示例 发布时间: 20251130
...new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (stageWd) * 0.5 , (stageHt - h) * 0.5-43, "25px SimHei",...
来源: Laya_社区 发布时间: 20170120