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

大约有 1,208 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

601. 手指点击list中的一个Item点击没反应 反复测试 发现 就是 手指稍微动一点就会点不住 手指 肯定没有鼠标精确度高 [ 66%]

...:     /**@private */     __proto.loop=function(){         var mouseY=Laya.stage.mouseY;         var mouseX=Laya.stage.mouseX;         this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-this._lastPoint.x);         if (this._clickOnly){    ...

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

602. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 66%]

...文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:int = Laya.stage.width - w >> 1; //显示的字符串 var demoString:String = "LayaBox"; var letter...

来源: Laya2.0_文档 发布时间: 20210715

603. Animation动画鼠标点击事件不起作用? [ 66%]

...件不起作用?         /**交易按钮*/         private var m_mc_trade:Animation;         /**挂机按钮*/         private var m_btn_auto:Button;   m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,...

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

604. 关于as版的Animation.createFrames()不能工作? [ 66%]

...et.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.lo...

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

605. AS中的回调函数为什么只能用Handler创建? [ 66%]

...调函数为什么只能用Handler创建? 比如一个主类: private var score:int; public function main():void {  new class(callback); } private function callback(num:int):void {   this.score = num;   var tmp:int = this.score;   trace(tmp); }     另外一个类:class.as 里面有个...

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

606. MeshCollider碰撞检测不到 [ 66%]

...撞检测不到,如果给模型添加boxCollider是可以检测到的。 var collider = barrier.addComponent(Laya.MeshCollider); collider.mesh = barrier.meshFilter.sharedMesh 已经安装官方文档添加上面的两行代码了 附件 : --> 2018-05-21 添加评论 已悬赏3元 --> 分享 微博...

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

607. 请问一下数组如何插入和删除元素? [ 66%]

...17-10-25 17:12 浏览: 1390 关注: 2 人 15818760256 • 2017-10-25 17:19 var arr = []; arr.img = "images/insect.jpg"; arr.text = "蝗虫泛滥"; 那如果是这样定义的数组,想删除其中某一项要怎么弄?这个没有索引值了。。 175*****371 • 2018-04-09 ...

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

608. 分享:Dragonbones/Spine的换肤操作 [ 66%]

...ya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var templete:Templet;//动画模板类 private var skeleton:Skeleton;//骨骼动画类 private var curNum:int=0;//curNum%2求余数,切换不同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,W...

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

609. as3中,调用原生js的的时候,如何传递原生JS要用到的document.getElementById的ID过去? [ 66%]

...我就是想把二维码要绘制的div传过去,代码如下: __JS__('var qrcode = new QRCode(document.getElementById("qrcode"), {width:100, height:100});'); 范例中的代码本身是这样子的: <body> <div id="qrcode" style="width:100px; height:100px; margin-top:15px;"></d...

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

610. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 66%]

...: 与内容相关的链接 提交 1 个回复 淡淡的疯 赞同来自: var texture2D = new Laya.Texture2D(); texture2D.loadImageSource(sharedCanvas, true);   var texture = new Laya.Texture(texture2D); //texture.bitmap.alwaysChange = true; rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas....

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