• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 498 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0049 秒)

181. 属性无法获取 [ 61%]

... joy.callBackFun = onMyRole.bind(this);   第二个: joy.callBackFun = Handler.create(this,onMyRole); 2017-06-11 1 0 分享 微博 QZONE 微信 170*****650 赞同来自: 已解决 非常感谢 2017-06-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

来源: Laya_社区 发布时间: 20170610

182. List选中项下滚会变 [ 61%]

...this.sList.selectEnable = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListVi...

来源: Laya_社区 发布时间: 20170805

183. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 61%]

...模型 Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将模型加到场景上 var layaMonkey:Sprite3D = scene.addChild(sp) as Sprite3D; })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试...

来源: Laya2.0_文档 发布时间: 20210715

184. 分享个资源加载的方法,类似白鹭的加载方式 [ 61%]

...n(srcName: string,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg.groups; RES.resources = arg.resources; RES.getInstance().event(RES.ONLOADEDRESJSON,arg); }else{ RES.getInstance().event(RES.ONLOADERRORRESJSON,arg); } })) } /** * g...

来源: Laya_社区 发布时间: 20161011

185. AS转换JS运行报错 [ 61%]

...常,但按键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法   附件 : --> 2017-01-23 添加评论 免费帖 --> 分...

来源: Laya_社区 发布时间: 20170123

186. Animation添加帧标签无效是怎么回事。 [ 60%]

...完成后设置Label。 this.takeOutMc.loadAnimation("ani/TX036.ani",Laya.Handler.create(this,()=>{                 //加载完设置label                 this.takeOutMc.addLabel("shou",26);             }));   2018-01-23 0 0 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20180123

187. 同时加载多个.js文件 [ 60%]

同时加载多个.js文件 Laya.loader.load("js/daTing.js", Handler.create(this, onAssetLoadedDT), null, Loader.TEXT); 同时加载多个么? 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...

来源: Laya_社区 发布时间: 20171017

188. laya.display.Animation [ 60%]

...否是鼠标事件。 EventDispatcher  loadAnimation(url:String, loaded:Handler = null, atlas:String = null):Animation 加载并解析由LayaAir IDE制作的动画文件,此文件中可能包含多个动画。默认帧率为在IDE中设计的帧率,如果调用过set interval,则使用此帧...

来源: Laya2.0_api 发布时间: 20190513

189. 监听选择list项会一直触发 [ 60%]

监听选择list项会一直触发 v1.7.5this.avatarList.selectHandler = Handler.create(this, this.onSelect, null, false); onSelect(index: number) { console.log("一直触发"); }     2017-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

来源: Laya_社区 发布时间: 20170515

190. laya.ui.Tree [ 60%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...

来源: Laya2.0_api 发布时间: 20190513