大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0073 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... mc.height=700; mc.on("click", this, onAniClick); trace("mcwidth:"+mc.width+"mcheight:"+mc.height); // mc.on(Event.LOADED,this,onComp); // mc.on(Event.COMPLETE,thi...
来源: Laya_社区 发布时间: 20170804
... if (window.conch) { return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空! } else { return this.getTexturePixels(x, y, width, height); ...
来源: Laya_社区 发布时间: 20220317
... Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 和 Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 都要删掉。 内涵tv何吓吓 • 2019-03...
来源: Laya_社区 发布时间: 20190305
...西,比如说为啥教学视频里面都喜欢用Laya.Handler.create(this,this.xxx)来做事件;为啥不能直接this.xxx呢?有什么优点呢?文档是说是从对象池里取,这又是个什么玩意儿,好抽象额。。。。 作为新手,感觉不知道哪里入手额。。...
来源: Laya_社区 发布时间: 20180403
...1=new View(); btn_1.graphics.drawPath(0, 0, path, {fillStyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1); 不管怎么点,在这个点击方法里面是不会执行的 2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180709
... var interactionArea; var ape; var mouseX = 0; _proto.onInit = function(){ this.guaSpr.cacheAs = "bitmap"; ape = new Sprite(); this.guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMo...
来源: Laya_社区 发布时间: 20170615
....window.open("http://baidu.com"); } Laya.stage.on(Event.KEY_DOWN, this, OnDown);//正常 Laya.stage.on(Event.MOUSE_DOWN, this, OnDown);//被拦截 Laya.stage.on(Event.CLICK, this, OnDown);//被拦截 在页游端中只有Event.KEY_DOWN事件按下键盘可以正常跳转网页。而监听...
来源: Laya_社区 发布时间: 20181227
...null Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) let mainSound:Laya.SoundChannel = null; this.btn_sound.on(Laya.Event.C...
来源: Laya_社区 发布时间: 20190716
...报错。(这就有点恐怖) 注:已经是 for (var i = 0, n = this.length; i < n; i++) 赋值了。 没时间去仔细改,现在用暴力方式改一下: if (index !== -1){ console.log("SimpleSingletonList:" + element + " has in SingletonList."); this.clear(); ...
来源: Laya_社区 发布时间: 20200910
...net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json"); Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image"); 一样的代码,上面加载json就可以,下面加载image就...
来源: Laya_社区 发布时间: 20191024