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

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

61. MovieClip的target和currentTarget属性为undefined? [ 57%]

...t属性为undefined? private function showNowPic():void{ for each(var ul:String in pics){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.curren...

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

62. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 57%]

...声音进行控制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: number) { return new Promise((resolve, reject) => { let soundChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { re...

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

63. 背景音乐播放完毕要等很久才开始循环播放,版本1.7.17 [ 55%]

...。          */         public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那? 2018-04-17 0 1 分享 微博 QZONE ...

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

64. [LayaAirIDE3]打包原生安卓 , 运行错误 , 我不清楚是不是我自己的问题. [ 54%]

...自定义一下方法 比如:     private formatNumber(value: number): string {         if (value === 0) return '0';          const absValue = Math.abs(value);         const sign = value < 0 ? '-' : '';          // 简单的单位转换         if (absValue >= 1e9) { ...

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

65. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...

来源: Laya3.0_文档 发布时间: 20251010

66. [LayaAirIDE3]2d相机打包后问题 [ 53%]

...ss() export class Joystick extends Laya.Script {     public static MOVE: string = "JoystickMove";     public static END: string = "JoystickEnd";      private bg: Laya.Sprite;     private knob: Laya.Sprite;     private maxRadius: number = 240;     private originPoint: Laya.Point;     p...

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

67. Cannot read property 'load' of null [ 51%]

...(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/...

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

68. httpRequest send返回Request failed Status:0 [ 51%]

...= function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻...

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

69. UI-RefreshList [ 50%]

...录 this.redHotStatus.splice(showRedHot, 1); // console.log("11111", JSON.stringify(this.redHotStatus)); } this.refreshList.refresh(); } onClickDel(index){ console.log("((((((((((((del------------"); //按索引删除 this.refreshList.array.splice(index, 1); //清除已纪录的打开状态 // this....

来源: Laya2.0_示例 发布时间: 20260106

70. socket无法连接服务器 [ 48%]

...连接服务器 客户端代码: let PORT: number = 8080;     let IP: string = "127.0.0.1"; export class NetSocket extends Laya.Socket{         private static _instance: NetSocket;         public static get instance(): NetSocket {             if (!NetSocket._instance) {        ...

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