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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)

611. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 76%]

...只限基于ActionScript的项目,基于ts的嗝屁  const a = new Laya.Event() Laya.__classmap['laya.events.Event'] == a.constructor //true   2017-08-10 0 0 分享 微博 QZONE 微信 宇智波 旋 赞同来自: /**返回指定对象的完全限定名 */ static getQualifiedClassName(value):stri...

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

612. 微信小游戏发布问题 [ 76%]

...resources\app\node_modules\layacmd\layacmd-publish.js:141:21) at emitNone (events.js:86:13) at LayaProjectCompiler.emit (events.js:185:7) at LayaProjectCompiler.compile (E:\Laya\LayaAirIDE_beta\resources\app\node_modules\layacmd\compile_project.js:38:9) at ChildProcess.compileProject (E:\Laya\LayaAi...

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

613. 关于HttpRequest [ 76%]

... CommonUtils.urlEncode(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.b...

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

614. List翻页效果 [ 76%]

... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...

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

615. 鼠标点击穿透问题 [ 76%]

...4892 关注: 2 人 cuixueying • 2016-01-07 16:04 private function init(e:Event=null):void { var sp1:Sprite=new Sprite(); sp1.graphics.beginFill(0xFF00FF); sp1.graphics.drawRect(100,100,200,200); sp1.graphics.endFill(); addChild(sp1); sp1.addEventListener(MouseEvent.CLICK,onSp1); var sp2:Sprite=new...

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

616. LayaAir引擎与原生Flash的差异文档说明! [ 76%]

...ask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask; addEventListener(Event.ENTER_FRAME,function():void { mask.x++; mask.cacheAsBitmap=true; sp.cacheAsBitmap=true; }); LayaAir环境下: 1、静态遮罩  Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,20...

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

617. 鼠标down事件怎么不一定触发up事件呀,快速拖动某个物品是否只能检测down,不能检测到up,很奇怪的机制 [ 76%]

...一份demo上来我看看 lengyu • 2018-04-19 15:11 @w1114367261: spr.on(Event.MOUSE_DOWN, this, onStartDrag,arr); spr.on(Event.MOUSE_UP,this, onStopDrag,arr);,我就这两个函数,监听spr,这个sprite对象,然后再舞台上死命甩,就有可能会导致up事件不会触发呢,...

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

618. DOM元素-表单输入 [ 76%]

...ayInput.type = "date"; passwordInput.type = "password"; Laya.stage.on(Laya.Event.RESIZE, this, fitDOMElements, [emailInput, birthdayInput, passwordInput]); function showLabel(label,x,y){ var t = new Laya.Text(); t.height = this.rowHeight; t.valign = "middle"; t.fontSize = 15; t.font = "SimHei"; t.te...

来源: Laya_示例 发布时间: 20241001

619. 请问如何获取触屏上两个或者更多位置的坐标 [ 76%]

...链接 提交 1 个回复 wudi199553 赞同来自: private onMouseDown(e: Event): void {             var touches: Array<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     tou...

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

620. l龙骨动画内存上升 [ 76%]

...    Laya.stage.bgColor = "#ffffff";             Laya.stage.on(Event.CLICK, this, play);         }                  function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/Bi...

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