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

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

611. laya.d3.component.physics.Collider [ 88%]

...否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦...

来源: laya_api 发布时间: 20170929

612. as3 包内公共函数无法编译,运行时提示 XX is not a function [ 88%]

as3 包内公共函数无法编译,运行时提示 XX is not a function 如题,编译没有提示出错,但运行时报错,实在找不出原因。 奇怪的是,TestFunc执行没有报错,HandleMsgResult却报错,其它的方法也一样; 查询编译出来的max.js文件,发现Hand...

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

613. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 88%]

... *... *@author ww */ //class BKLaya.adptclass.BKWebSocket var BKWebSocket=(function(){ function BKWebSocket(url){ this._socket=null; this.onopen=null; this.onmessage=null; this.onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.onClose=function (...

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

614. JQ集成到Laya二次封装 [ 88%]

...; // //================= demo1 ======================= // JQ(aWater).click(function () { // //我已经打算废弃这样的事件用 on来动态绑定触法 // }) // //================= demo1 ======================= // //================= demo2 ======================= JQ(aWater).on('click', functio...

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

615. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 88%]

...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...

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

616. 加载UI为什么总是加载白底 [ 88%]

加载UI为什么总是加载白底 var LayaSample = (function(){ (function(){ //初始化引擎 Laya.init(750,1334); //设置stage颜色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function ...

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

617. laya.ui.TextArea [ 88%]

...e addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Component changeText(text:String):void 快速更改显示文本。不进行排版...

来源: laya_api 发布时间: 20170929

618. 发布微信小游戏后 this.preinitialize is not a function [ 88%]

发布微信小游戏后 this.preinitialize is not a function IDE里面调试一切正常,发布微信小游戏以后就出现这个BUG 2018-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 云淡风轻 赞...

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

619. Laya.class问题 [ 88%]

... 提交 1 个回复 cuixueying 赞同来自: class () 方法 public static function class(functionRef:Function, fullQulifiedName:String, superClass:Function, miniName:String):void 在JS中,通过Laya.class来定义类,同时可以指定其继承关系。 参数 functionRef:Function — 类的函...

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

620. laya.ani.AnimationPlayer_API3.0 [ 88%]

...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...

来源: Laya3.0_api 发布时间: 20231115