大约有 200 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0041 秒)
... 在官方 dialog 那个demo中,不适用show,改为 Laya.stage.addChild(dialog1) 就可实现此效果。 2017-03-31 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: LayaAir本身就是一个canvas标签,多窗口可以实现,你用js原生的方法来做即可,添加多个c...
来源: Laya_社区 发布时间: 20170331
...: ------(已解决)laya和AS3这里有细节区别。laya需要目标已经AddChild到舞台才有效果。 翻进去看到这句:if (!_displayedInStage || !point) return point;。。。醉了= =!~ 2017-02-27 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 是的,你只有addChild...
来源: Laya_社区 发布时间: 20170227
...hics.drawCircle(0,0,100,"#00CC33"); sprite.graphics = graphics; Laya.stage.addChild(sprite); //画一条直线,添加进圆 var sprite2:Sprite = new Sprite(); var graphics2:Graphics = new Graphics(); graphics2.drawLine(500,500,500,400,"#000000",2); sprite2.graphics = graphics2; Laya.stage.addChild...
来源: Laya_社区 发布时间: 20190515
...XXXXXXXXXXXXXXXXXXXX"; text.x=200; trace(text.textField.lines); Laya.stage.addChild(text); 2017-06-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cry_11858 相关问题 请问有没有方法能够获取“鼠标是否处于按下状...
来源: Laya_社区 发布时间: 20170616
...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...
来源: Laya_社区 发布时间: 20170814
...为panelA,现在会在面板上加个箭头图片,命名为imgB panelA.addChild( imgB ); panelA的宽高为100,100 imgB的坐标为110,50 出现现象是:位于面板A指定宽高范围 外部的imgB无法显示 请问下怎么才能使面板外部的imgB显示出来? 2017-02-07 添加评论...
来源: Laya_社区 发布时间: 20170207
...left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x = this.html.x if (_x < -_w) { this.stop(true) } else { this.html.x -= 2 } } /** ...
来源: Laya_社区 发布时间: 20180314
...idth /2 ,tx.height / 2); tx.align="center"; tx.valign="middle"; Laya.stage.addChild(tx); } })() 2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 修改后的代码...
来源: Laya_社区 发布时间: 20171115
...一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView); function enterNextScene() { } ... ... //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsView = (f...
来源: Laya_社区 发布时间: 20171017
...aleMode = "showall"; //添加Sprite var sp = new Laya.Sprite(); Laya.stage.addChild(sp); //将sp移动到横坐标400,纵坐标300的位置 sp.pos(400,300); //绘制两条在sp的原点交叉的直线 sp.graphics.drawLine(-50,0,50,0,'#00ff00',1); sp.graphics.drawLine(0,-50,0,50,'#00ff00',1); //绘...
来源: Laya_社区 发布时间: 20180524