大约有 290 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0038 秒)
...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...
来源: Laya_社区 发布时间: 20240305
.../初始化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.m...
来源: Laya_社区 发布时间: 20170825
...报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20161216
发布微信小游戏后 this.preinitialize is not a function IDE里面调试一切正常,发布微信小游戏以后就出现这个BUG 2018-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 云淡风轻 赞...
来源: Laya_社区 发布时间: 20181203
使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...
来源: Laya_社区 发布时间: 20170324
...,变成红色字体,怎么写? button001.on(Laya.Event.MOUSE_DOWN, this, function (e) { //点击的按钮变成红色字体???? }); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w11143672...
来源: Laya_社区 发布时间: 20180419
...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...
来源: Laya_社区 发布时间: 20181217
...等于0 var w: number = 642; var h: number = 12; var g: Laya.Graphics = this._mask.graphics; g.clear(); if (w == 0 || h == 0) return; var points: any[] = []; points.push(0, h); points.push(0, 0); points.push(this._index, 0); points.push(this._index, h); // points.push(0, h); g.drawPoly(0, 0, po...
来源: Laya_社区 发布时间: 20221117
...;1 __proto.worldToViewportPoint=function(position,out){ Matrix4x4.multiply(this._projectionMatrix,this._viewMatrix,this._projectionViewMatrix); this.viewport.project(position,this._projectionViewMatrix,out); var outE=out.elements; if (out.z < 0.0 || out.z > 1.0){ outE[0]=outE[1]=outE[2]=NaN; }...
来源: Laya_社区 发布时间: 20171229
...请: 与内容相关的链接 提交 1 个回复 cry_11858 赞同来自: this.list_xxx.renderHandler = this.list_bag.renderHandler || new Laya.Handler(this, this.updateList); ActivityXXXXXUI.prototype.updateList = function(cell, index) { var info = cell.dataSource; ...
来源: Laya_社区 发布时间: 20170808