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

大约有 4,336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0089 秒)

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

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

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

612. laya.ui.TextArea [ 88%]

...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node changeText(text:String):void 快速更改显示文本。不进行排版计算...

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

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. 加载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

616. 二进制图片(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

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

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

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

618. 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

619. laya.ui.TextArea [ 88%]

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

来源: laya_api 发布时间: 20170929

620. 打包后报错 Unexpected token in JSON at position 266 [ 88%]

... Unexpected token in JSON at position 266;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 266     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15)     at Function.MiniLoader.onReadNat...

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