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

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

1581. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 68%]

...a.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this,...

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

1582. 如何能监听到TouchStart和TouchEnd事件 [ 68%]

...相关的链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event  类型 监听动作  class Event {         /** 一个空的 Event 对象。用于事件派发中转使...

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

1583. laya.display.Text [ 68%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  font : String 文本的字体名称,以字符串形式表示。 默认值为...

来源: laya_api 发布时间: 20170929

1584. 加上size设置后,精灵不能点击. [ 68%]

...(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" f.loadImage(s); f.on(Laya.Event.C...

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

1585. laya.html.dom.HTMLDivElement_API3.0 [ 68%]

...xtWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect...

来源: Laya3.0_api 发布时间: 20231102

1586. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 68%]

...能正确适配屏幕 SCALE_FIXED_WIDTH适配屏幕的问题 我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 SCALE_FIXED_WIDTH适配屏幕的问题 HTMLDivElement <img>标签width、height在手机端无效 版本2.1.0HTMLDivElemen...

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

1587. quickcompile什么时候该设置true什么时候该设置false [ 68%]

...微信小游戏里面如何知道用户是否焦点在游戏里面? Laya.stage.isFocused Laya.stage.isVisibility 永远是true 2.0 类库设置原则,laya.bdmini.js,laya.wxmini.js以前的版本有后者,现在的版本有前者 MiniAdpter.autoCacheFile=true没有任何作用,并没有缓存...

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

1588. Graphics实现透明度显示 [ 68%]

...ect(0,0,200,100,"#FF0000"); graphics.restore(); sp.graphics=graphics; Laya.stage.addChild(sp);实现graphics填充透明,请先对graphics进行save(),然后设置填充透明度值,其次绘制矢量图形,最后执行下restore()方法即可 2016-11-30 0 6 分享 微博 QZONE 微信 C001 赞...

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

1589. 示例 骨骼动画换装 加不上点击事件 [ 68%]

...ture.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //chang...

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

1590. 分享:IDE使用SWF动画的销毁与反复创建 [ 68%]

...;             testView.mc.play(0,true);             Laya.stage.addChild(testView);             Laya.timer.once(2000,this,onLoop,[testView]);         }         private function onLoop(testView:TestView):void         {             testView.mc.stop(...

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