大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0144 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...e; private var rowHeight:int = 30; private var rowSpacing:int = 10; public function DOM_Form() { Laya.init(600, 400); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stag...
来源: Laya2.0_示例 发布时间: 20260303
...; public class Dialog_Example { private var dialog:Dialog_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, o...
来源: Laya3.0_api 发布时间: 20231115
...dChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完成的...
来源: Laya_社区 发布时间: 20180609
...s/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){ //Laya.Sprite3D.load("res/layatest.lh",Laya.Handler.create(null, function(sp){ this.box=scene.addChild(sp); this.box.transform.rotate(new Laya.Vector3...
来源: Laya_社区 发布时间: 20190514
...ui页面里下on事件无法触发 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStart...
来源: Laya_社区 发布时间: 20180213
...ugtool调试报错了 Uncaught TypeError: sprite._getBoundPointsM is not a function at Function.showDisBound (laya.debugtool.js:3365) at dhtmlXTreeObject.<anonymous> (laya.debugtool.js:4840) at dhtmlXTreeObject.e.callEvent (eval at init (laya.debugtool.js:4050), <anonymous...
来源: Laya_社区 发布时间: 20200420
... laya.net.Loader; import laya.utils.Handler; public class XmlDemo { public function XmlDemo() { Laya.init(550,400); Laya.loader.load("data.xml",Handler.create(this,onLoaded),null,Loader.XML); } private function onLoaded():void { // TODO Auto Generated method stub var xml:XmlDemo=Laya.loader.getRes("...
来源: Laya_社区 发布时间: 20160914
...东的声音audioContext的offEnd接口报错了,说offEnd接口里传的function,在平台调用removeListener时认为你传的Function不是一个函数,具体问题还需要结合运行的环境来分析。因为我们并没有支持京东小游戏,这个还需要寻求官方来获取解...
来源: Laya_社区 发布时间: 20251110
...e addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Component clearTimer(caller:*, method:Function):void 清理定时器。功能同Lay...
来源: laya_api 发布时间: 20170929
... 使用chrome进行性能测试时看到这样的图表,想问一下在function call之间的空白是代表idle吗?是什么原因引起的,是否有方法尽量缩减每帧当中的空白部分让每帧的总耗时尽可能小? 附件 : --> 2018-06-26 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180626