大约有 1,451 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0051 秒)
...r i = 0; i < array.numChildren; i++) { var child = array.getChildAt(i); if (child.name === 'lightDottedActive') { child.visible = true; child.alpha = 0; timeline .addLabel('lightDotted', 0) .to(child, { alpha: 1 }, 200, Ease.linearIn) .to(child, { alpha: 0 }, 200, Ease.linearIn) } } timeline.play...
来源: Laya_社区 发布时间: 20170405
...] 2019-04-25 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 1、If the state is UNSENT or OPENED, return 0.(如果状态是UNSENT或者OPENED,返回0) 2、If the error flag is set, return 0.(如果错误标签被设置,返回0) 前面提到,服务器在完成请求之后会...
来源: Laya_社区 发布时间: 20180522
...是字节长度问题。 How long are the message you are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the n...
来源: Laya_社区 发布时间: 20180612
...) { var maggotContainer; for (var i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangl...
来源: Laya_示例 发布时间: 20241120
...on onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function onConnectError(e:Event=null):void { trace("error"); } } }
来源: Laya_示例 发布时间: 20241120
...ber = 0;i<childLength;i++) { var childSprite:Node = scene3d.getChildAt(i); if(childSprite instanceof MeshSprite3D) { //设置精灵接收阴影 childSprite.meshRenderer.receiveShadow = true; //设置精灵可投射阴影 childSprite.meshRenderer.castShadow = true; } else if(childSprite instanceof Sp...
来源: Laya2.0_文档 发布时间: 20210715
Slider控件的标签不居中 protected function showValueText():void { if (showLabel) { var label:Label = Slider.label; addChild(label); label.textField.changeText(_value + ""); if (isVertical) { label.x = _bar._x + 20; label.y = (_bar.height - label.height) * 0.5 + _bar._y; } else { label.y = _b...
来源: Laya_社区 发布时间: 20190125
... btColObj.forceActivationState(5); var flags=btColObj.getCollisionFlags(); if ((this.owner).isStatic){ if ((flags & 2)> 0) flags=flags ^ 2; flags=flags | 1; }else { if ((flags & 1)> 0) flags=flags ^ 1; flags=flags | 2; } btColObj.setCollisionFlags(flags); this._nativeColliderObject=btC...
来源: Laya_社区 发布时间: 20190321
...赞同来自: 如果图片的数据是bitmap的话可以用以下代码: if (Render.isConchApp) { if (_image) _image.conchDestroy(); _image = Browser.document.createElement("image"); _image.putImageData(bitmap,_w,_h); } 其他的数据无法显示 2018-02-02 0 0 分享 微博 QZONE 微信 daiba...
来源: Laya_社区 发布时间: 20180201
...sBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import Progr...
来源: Laya_示例 发布时间: 20241120