大约有 57 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
...down 事件对象的 type 属性值。*/ static MOUSE_DOWN: string; /** 定义 mouseup 事件对象的 type 属性值。*/ static MOUSE_UP: string; /** 定义 click 事件对象的 type 属性值。*/ static CLICK: string; ...
来源: Laya_社区 发布时间: 20170601
...e.on 绑定事件传参数的问题 on () method public function on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。 Parameters type:String — 事件的...
来源: Laya_社区 发布时间: 20170308
...plication/x-www-form-urlencoded 代码如下: static httpRequest(method:string, url:string, data:any, headers:Array<string>, cb:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => {...
来源: Laya_社区 发布时间: 20170123
...a{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; private JS_WS_CLI...
来源: Laya_社区 发布时间: 20180119
...properties: [ { name: "help", caption: "提示", inspector: "Info", type: "string", default: "输入文件夹必须是图集文件或图片,输出目录会以图集名生成子文件夹", }, { name: "inputPath", caption: "输入目录", inspector: "File", options: { absolutePath: true, properties:...
来源: Laya_社区 发布时间: 20250731
...:EditOption, option:"aaa,bbb,true", default:"bbb"}*/ public editOptionType:string = "bbb";这样使用字符串是可以的,但是我现在需要显示自己定义的枚举 enum ENUM_Effect{ null=0, popupEffect = 1, closeEffect = 2 }; function ENUM_ChangeString(enumObject) { let reslut=""; for (...
来源: Laya_社区 发布时间: 20191029
...r } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void; enum SoundType { BGM, Effect, Dialogue, } export class SoundManager { private static instance: SoundManager; private curBGMUrl: string; private bgmChannel: Laya.SoundChannel ...
来源: Laya_社区 发布时间: 20250930
...Asset("res/LayaScene_H5TestScene/H5TestScene.ls"); private LoadAsset(path: string): void { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回调了...
来源: Laya_社区 发布时间: 20180316
...,都会打印出 test 。 代码如下:public function Food(dishName:String, type:String, index:Number){ this.dishName = dishName; this.type = type; this.index = index; this.setPath(); this.on(Event.MOUSE_DOWN, Food, test); } private function test():void{ trace("test"); }求高手指点啊,有...
来源: Laya_社区 发布时间: 20180407
...roid:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name"> <activity android:name="demo.MainActivity" android:screenOrientation="landscape" android:windowSoftInputMode="stateHidden|adjustPan" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSi...
来源: Laya_社区 发布时间: 20170722