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

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

911. 提交一个MovieClip的BUG [ 54%]

...otY = ani_planet.pivotX = 350;             ani_planet.x = Laya.stage.width/2;             ani_planet.load("1.swf",true);             ani_planet.y = i*50;             addChild(ani_planet);                i++;         } 是不是...

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

912. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 54%]

...switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是...

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

913. LayaFlash如何使用chrome调试问题? [ 54%]

...nts.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目中设置场景尺寸 I...

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

914. laya2.0做微信小游戏排行榜功能时报错 [ 53%]

...rawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); Laya.stage.addChild(rankSprite2); });   希望官方可以给个微信小游戏排行榜2.0的demo 附件 : --> 2019-01-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

915. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 53%]

....btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuix...

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

916. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 53%]

....body.appendChild(mapDiv);       // 适应窗口尺寸 refit(); Laya.stage.on(Event.RESIZE, this, refit);   // 初始化地图 map = new BMap.Map(mapDiv);   // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom()...

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

917. 关于大量绘制 draw的性能优化问题 [ 53%]

...; Laya.init(800, 1030); Stat.show(0,0); var drawLayer = new Sprite(); Laya.stage.addChild(drawLayer); drawLayer.width = 800; drawLayer.height = 1030; drawLayer.on(Event.MOUSE_MOVE, this, mousemove); function  mousemove(e) {     drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ff...

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

918. Laya 绑定显示内容到骨骼动画 [ 53%]

...用方式:    this.__bind=new BindSkeleton();         Laya.stage.addChild(this.__bind);         this.__bind.x=Laya.stage.width*0.5;         this.__bind.y=Laya.stage.height*0.5;          this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler....

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

919. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 53%]

...r rect=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附...

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

920. 引擎 TiledMap 居然不支持图块翻转 [ 53%]

...      this._mapSprite = new Laya.Sprite();             Laya.ILaya.stage.addChild(this._mapSprite);             var tJsonData = this._jsonData = e;             this._properties = tJsonData.properties;             this._orientation = tJsonData.orientation;             ...

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