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

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

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. 和原生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

65. [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

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

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

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

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

68. 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_示例 发布时间: 20251130

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

70. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 45%]

...内容相关的链接 提交 2 个回复 shiyang12345 赞同来自: var xmlString="<data>"+ "<dir name='shi' num='10000' state='已集结' time_pro='' isOpen='true'>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000'...

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