大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ata.data","","get","text"); } private function processHandler(data:Object):void { trace(data); } private function completeHandler(data:Object):void { } private function errorHandler(e:Object):void { } } } ``` 上面这个示例我们发送了一个简单的请求,方式是get方式。用来获...
来源: Laya2.0_文档 发布时间: 20210715
...","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //.......解密逻辑开始处理数...
来源: Laya2.0_文档 发布时间: 20210714
...); } private function onAssetLoaded(e:*=null):void { // var texture:Texture = Loader.getRes("res/Dragon.png"); // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk"); factory = new Templet(); ...
来源: Laya_社区 发布时间: 20160902
...lic static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 name:String — 位图字体的名称。 bitmapFont:BitmapFont — 位图字体文件。 **unregisterBitmapFont () 方法** public static function unregisterBitmapFont(name:String, destory:Bo...
来源: Laya2.0_文档 发布时间: 20201114
... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...
来源: Laya2.0_api 发布时间: 20190513
...ip get clip(): AnimationClip | null set clip(value: AnimationClip | null): void Defined in laya/d3/component/Animator/AnimatorState.ts:86 动作。 Returns AnimationClip | null Defined in laya/d3/component/Animator/AnimatorState.ts:90 动作。 Parameters value: AnimationClip | null Returns void isl...
来源: Laya3.0_api 发布时间: 20231115
...sponseType?: "text" | "json" | "xml" | "arraybuffer", headers?: string[]): void; 2.1.2 GET请求示例 GET 请求主要通过 URL 传递。在 URL 中,参数跟在 “?” 后面,多个参数用 “&” 分隔,如 “https://example.com/search?q = keyword&page = 1”。这使得数据...
来源: Laya3.0_文档 发布时间: 20251010
...,"logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式...
来源: Laya_社区 发布时间: 20170628
...的 Class 映射。 ClassUtils regClass(className:String, classDef:*):void[static] 注册 Class 映射,方便在class反射时获取。 ClassUtils regShortClassName(classes:Array):void[static] 根据类名短名字注册类,比如传入[Sprite],功能同regClass("Sprite",Sprite); ClassUt...
来源: Laya2.0_api 发布时间: 20190513
...使用并用IndexBuffer3D.create()代替 实例。 IndexBuffer3D _bind():voidBuffer getData():Uint16Array 获取索引数据。 IndexBuffer3D setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:Number = 4294967295):void 设置数据。 IndexBuffer3DProtected Methods Show I...
来源: laya_api 发布时间: 20170929