• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0114 秒)

1751. 怎么设置了label的text属性,没有生效啊? [ 77%]

...-09-11 0 0 分享 微博 QZONE 微信 youxin 赞同来自:         this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}};                  this.TestLablel.text = "测试测试"; 官网提供...

来源: Laya_社区 发布时间: 20170911

1752. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 77%]

...ture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 破...

来源: Laya_社区 发布时间: 20190508

1753. window 下接收不到事件,Click,EnterFrame都接受不到 [ 77%]

...: 2 人 黄进 • 2018-06-11 17:23 啥意思? Content.once(Event.CLICK,this,OnMouseDown); Content.once(Event.MOUSE_OUT,this,OnMouseDown); Laya.stage.once(Event.FRAME,this,onEnterFrame); 这样事件都监听不到? Laya_Aaron • 2018-06-11 17:52 你描述的我也不懂是什么意思,只能...

来源: Laya_社区 发布时间: 20180611

1754. [LayaAir3]右键up删除不了监听 [ 77%]

...并回收事件的;需要再添加下面代码所示的右键Up监听: this.owner.on(Laya.Event.RIGHT_MOUSE_UP, this, this.onRightMouseUp); 2025-02-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 仓颉 相关问题 TextInput重写...

来源: Laya_社区 发布时间: 20250220

1755. 请问list如何判断已经拉到底部了 [ 77%]

...st.scrollBar.value 目前没什么问题 188*****501 • 2018-07-14 14:12 (this.card_List.scrollPane.posY + this.card_List.height) >= this.card_List.scrollPane.contentHeight 我用的这个判断

来源: Laya_社区 发布时间: 20180702

1756. Dialog关闭时如何向open他的页面传值? [ 77%]

...是哪个按钮,抛出具体的事件并监听。 myClose.on(Event.CLICK,this,onClicks); myYes.on(Event.CLICK,this,onClicks); myNo.on(Event.CLICK,this,onClicks) } private function onClicks(e:Event):void { // TODO Auto Generated method stub if(e.target.name=="close") { open页面.event(CLOSE, [para...

来源: Laya_社区 发布时间: 20160908

1757. clearRes好像没作用,或许我的用法不对 [ 77%]

...() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", fals...

来源: Laya_社区 发布时间: 20170317

1758. 点击区域问题 [ 77%]

... new laya.maths.Rectangle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() {     sp.graphics.clear();     var rc:number = Math.floor(Math.random()*0xffffff);     sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几层,点击区域...

来源: Laya_社区 发布时间: 20180106

1759. 全屏请求问题!!!求救啊!!求救啊!! [ 77%]

全屏请求问题!!!求救啊!!求救啊!! this.fullScreen_btn.on(Laya.Event.CLICK, this, this.onFullScreen, null); _proto.onFullScreen = function () { toggleFullscreen(); };       function launchIntoFullscreen(element) { var element = document.documentElement; if (element.reque...

来源: Laya_社区 发布时间: 20190715

1760. 分享:Dragonbones/Spine的换肤操作 [ 77%]

...on/DragonDragon.sk');//加载龙骨动画数据 templete.on(Event.COMPLETE,this,onPleteComed);//数据解析完成后的调度事件。 } private function onPleteComed():void { skeleton=templete.buildArmature(1);//创建动画,类型:1 支持换装 skeleton.pos(150,250);//动画位置 skeleton.p...

来源: Laya_社区 发布时间: 20170324