大约有 400 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0098 秒)
...vent.COMPLETE,this,this.onAniComplete);但 Laya.Animator跟本没有继承EventDispatcher, 根本没有on函数啊, 我看了laya.d3.js, 播放完什么都没做,只调用了script.onStateExit if ((!islooping && elapsedPlaybackTime >=clipDuration)){ playState._finish=true; playState._...
来源: Laya_社区 发布时间: 20190112
....1.4 在代码中怎么使用 LayaAir引擎中用 HttpRequest 继承的是 EventDispatcher,具有事件派发的功能。加上本身具备发送请求的功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest =...
来源: Laya3.0_文档 发布时间: 20250104
.../AS3/2006/builtin::call() at laya.utils::Handler/runWith() at laya.events::EventDispatcher/event() at laya.resource::Resource/completeCreate() at laya.webgl.resource::WebGLCharImage/recreateResource() at laya.resource::Resource/activeResource() at laya.resource::Texture/active() at laya.webgl.text::...
来源: Laya_社区 发布时间: 20200217
...逻辑处理。 2.1 支持的事件类型 LayaAir中的HttpRequest继承自EventDispatcher,因此支持多种事件类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完...
来源: Laya3.0_文档 发布时间: 20250214
...个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*...
来源: Laya_社区 发布时间: 20180504
...dio) return 1; return this._audio.volume; } } class MiniSound extends Laya.EventDispatcher { constructor() { super(); this.loaded = false; } static _createSound() { MiniSound._id++; return MiniAdpter.window.wx.createInnerAudioContext(); } load(url) { if (!MiniFileMgr.isLocalNativeFile(url)) { url = ...
来源: Laya_社区 发布时间: 20200103
...** 基于pomelo网络握手通讯*/ export class Socket extends Laya.EventDispatcher { private pomelo: Pomelo; private mDecorate:Decorate;//装饰器 private mHost: string; private mPort: number; private mConnected: boolean; ...
来源: Laya_社区 发布时间: 20161109
...类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; protected _enable: boo...
来源: Laya_社区 发布时间: 20171109
...tring, data?: any): boolean Implementation of ISelect.event Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,......
来源: Laya3.0_api 发布时间: 20231115
...Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,......
来源: Laya3.0_api 发布时间: 20231115