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

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

691. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 70%]

...边颜色 label.strokeColor = strokeColor; } //加载到舞台 Laya.stage.addChild(label); return label; } } } ```

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

692. Laya事件不能添加给多边形吗? [ 70%]

...ct( 0, 0, Laya.stage.width, Laya.stage.height-100, "#ffffff" ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, function(){ console.log( 'adf' ) } );   我创建一个多边形,然后添加一个点击事件就没反应。但是如果添加一个图片,点击就有反应...

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

693. Laya.loader.load 加载场景报错 [ 70%]

...e(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<anonymo...

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

694. sprite 设置为静态变量后,无法从舞台移除 [ 70%]

...; Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.d...

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

695. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 70%]

...>> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void { _colorSpr.on(Event.MOUSE_MOVE, this, __moveHandler); } private function __moveHandler():void { var p:Point = toLocal...

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

696. swf播放有问题,遮罩动画不能用吗 [ 70%]

...ovieClip = new MovieClip(); mc.load(this.SWFPath); mc.pos(0,0); Laya.stage.addChild(mc); } } } new laya.Animation_SWF(); Charles • 2018-01-08 13:51 支持遮罩动画吗?请帮忙看看我这个问题,https://ask.layabox.com/question/10417。转后的swf播放报错。

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

697. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 70%]

...教: soundManager如何停止正在播放的背景音乐 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 怎么停止正在运行Laya.timer.frameLoop的回调函数 背景音乐问题,停止与播放状态与InnerAudioContext对象不同步 为什么编辑环境下的ui文...

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

698. 事件绑定不触发bug [ 69%]

...down", this, callback);                           Laya.stage.addChild(sp);                                        console.log(" laya test");                      };                  laya_test();   如上代码,加上sp.pos(500, 400);这句...

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

699. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 69%]

... bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg);  我们再次刷新页面看看有什么效果   嗯 看来图片出来了~~~不错 现在我们可以开始继续了   //=======================  美丽的分割线 =======================   编写RunGame...

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

700. 不带格式后缀的图片无法成功加载 [ 69%]

...odee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀的图片,比如.jpg就可以正常展示图片。 附件 : --> ImageDemo.zip 2021-10-26 添加评论 免费...

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