大约有 74 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(37) Laya2.0_示例(9) Laya_示例(8) Laya3.0_api(7) Laya3.0_文档(6) Laya2.0_文档(3) Laya2.0_api(3) laya_api(1)
...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
...声音进行控制,以及获取声音信息。 */ 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
...。 */ 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
...显示这个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
...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
...(); } 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
...= function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻...
来源: Laya_社区 发布时间: 20180629
...录 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
...连接服务器 客户端代码: 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
...内容相关的链接 提交 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