大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0155 秒)
Laya_社区(1915) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(...
来源: Laya_社区 发布时间: 20180419
... = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null, checkHit); var hit = new Laya.RaycastHit(); var point...
来源: Laya_社区 发布时间: 20170915
...structor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():void{ ...
来源: Laya_社区 发布时间: 20180724
...%3B alert("url=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function c...
来源: Laya_社区 发布时间: 20161103
...后 示例如下: package { import laya.ani.swf.MovieClip; import laya.events.Event; public class AAA { private var swf:MovieClip; public function AAA() { Laya.init(550,400); swf=new MovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function...
来源: Laya_社区 发布时间: 20160918
... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...
来源: Laya_社区 发布时间: 20180312
...,还没有正式发出去。 2020-08-10 0 1 分享 微博 QZONE 微信 S_eVent 赞同来自: 如果小写的laya命名空间作为属性变量的类型使用的话是没有问题的,因为编译成js后会去掉。但一旦作为父类被继承的话就会报错了,我这边是.efc文件导出...
来源: Laya_社区 发布时间: 20200809
...All Classes | Index | Frames No Frames SliderProperties | Methods | Events Packagelaya.uiClasspublic class SliderInheritanceSlider Component Sprite Node EventDispatcher ObjectSubclasses HSlider, VSlider 使用 Slider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选...
来源: laya_api 发布时间: 20170929
...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaterni...
来源: Laya_示例 发布时间: 20251209
...化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnak...
来源: Laya_示例 发布时间: 20251209