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

大约有 1,218 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)

461. TimeLine调用destroy报错&执行完成后回到起点 [ 68%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this...

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

462. 移动端横竖屏适配(类似锁屏效果)? [ 68%]

...链接 提交 1 个回复 cuixueying 赞同来自: package { import laya.events.Event; import laya.utils.Browser; public class ShiPei { private var fillWidth:Number=Browser.width; private var fillHeight:Number=Browser.height; public function ShiPei() { //设置初始化 Laya.init(fillWidth,fillHeigh...

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

463. Sprite optimizeScrollRect = true 似乎有问题 [ 68%]

...O_TOP ? this.height : 1; this.mask.addChild(this.content); this.content.on(Event.MOUSE_DOWN, this, this.onMouseDown); this.content.on(Event.MOUSE_WHEEL, this, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt...

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

464. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 68%]

...息 var req:HttpRequest = new HttpRequest();             req.once(Event.COMPLETE, this, function():void             {                 trace(req.data);             });             req.once(Event.ERROR, this, function():void             {    ...

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

465. Animator无法监听complete [ 68%]

...s.ANIM_CARD_IN_HAND_IDLE_NICK,0,34); //监听动画完成 this.ani.on(Laya.Event.COMPLETE, this, this.onAniComplete); 之后,当我动画播放完成后,设置的监听动画结束播放监听无效. 请问这个监听添加有错误么?监听不是应该添加到Animator对象上么? 2018-03-09 添...

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

466. 用JS原生态window.location.href跳转 [ 68%]

...器上运行是正常的package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(...

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

467. matter中更换texture [ 68%]

...,图片没变,好像没有更新. //事件回调---collisionStart Matter.Events.on(engine, 'collisionStart', function(event) { var pairs = event.pairs; // change object colours to show those ending a collision for (var i = 0; i < pairs.length; i++) { var pair = pairs[i]; pair.bodyA.render.fillS...

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

468. 循环动画怎么记录次数 [ 68%]

...链接 提交 1 个回复 cuixueying 赞同来自: 添加播放完成事件Event.COMPLETE,用一个变量++即可! 2017-08-02 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 abc0201213 相关问题 Tween如何实现无限循环改变a...

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

469. 下来框ComboBox的change事件怎么绑定 [ 68%]

...相关的链接 提交 1 个回复 189*****192 赞同来自: box.on(Laya.Event.CHANGE,this,方法名称);    2017-10-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 qq1297404644 相关问题 分享:自定义事件派发与侦听(...

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

470. 鼠标点击无效 [ 68%]

...接 提交 1 个回复 YuJungLi 赞同来自: 13995580072 点击? Laya.Event.CLICK   2017-11-21 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 13995580072 相关问题 Dialog:屏蔽点击Dialog之外的区域关闭弹框 请问有...

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