大约有 6 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
....events.Event; import laya.renders.Render; import laya.runtime.IConchRenderObject; import laya.utils.Browser; import laya.utils.StringKey; import laya.utils.Utils; /** * ... * @author */ public class DOM_Form { private var form:Sprite; private var rowHeight:int = 30; private var rowSpacing:int = 10;...
来源: Laya2.0_示例 发布时间: 20241118
...e(message).finish(); // ... do something with buffer // Or, encode a plain object var buffer = AwesomeMessage.encode( { awesomeField: "AwesomeString" }).finish(); // ... do something with buffer // Decode an Uint8Array (browser) or Buffer (node) to a message var message = AwesomeMessage.decode(buffe...
来源: Laya2.0_示例 发布时间: 20241118
...rootNode.childNodes; for (var i:int = 0; i < nodes.length; i++) { var node:Object = nodes[i]; // 本节点为元素节点 if (node.nodeType == 1) { trace("节点名称: " + node.nodeName); trace("元素节点,第一个子节点值为:" + node.firstChild.nodeValue); } // 本节点是文本节点 ...
来源: Laya2.0_示例 发布时间: 20241118
...a.stage.alignV = Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:Object = Browser.createElement("video"); Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zIndex = Render.canvas.style.zIndex + 1; videoElement.src = "../../res/av/mov...
来源: Laya2.0_示例 发布时间: 20241118
...d(guideContainer); Laya.stage.removeChild(tipContainer); } else { var step:Object = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(step.x, step.y, step.radius, "#0...
来源: Laya2.0_示例 发布时间: 20241118
...en(); private var gradientInterval:int = 2000; private var bgColorChannels:Object = {r: 99, g: 0, b: 0xFF}; public function BlendMode_Lighter() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...
来源: Laya2.0_示例 发布时间: 20241118