大约有 11 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0024 秒)
....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;...
来源: Laya_示例 发布时间: 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...
来源: Laya_示例 发布时间: 20241118
...geWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; private var mouseConstraint:*; private var engine:*; public function Physics_NewtonsCradle() { // 不支持WebGL时自动切换至Canv...
来源: Laya_示例 发布时间: 20241118
...geWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; private var mouseConstraint:*; private var engine:*; public function Physics_Cloth() { // 不支持WebGL时自动切换至Canvas Laya....
来源: Laya_示例 发布时间: 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); } // 本节点是文本节点 ...
来源: Laya_示例 发布时间: 20241118
...ation, false); }); } private function initShader():void { var attributeMap:Object = { 'a_Position': VertexElementUsage.POSITION0, 'a_Normal': VertexElementUsage.NORMAL0}; var uniformMap:Object = { 'u_MvpMatrix': [Sprite3D.MVPMATRIX, Shader3D.PERIOD_SPRITE], 'u_WorldMat': [Sprite3D.WORLDMATRIX, Shade...
来源: Laya_示例 发布时间: 20241118
...a.stage.alignV = Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:Object = Browser.createElement("video"); Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Render.canvas.style.zIndex + 1; videoElement.src = "../../../../res...
来源: Laya_示例 发布时间: 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...
来源: Laya_示例 发布时间: 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...
来源: Laya_示例 发布时间: 20241118
...tation, true); }); } private function initShader():void { var attributeMap:Object = {'a_BoneIndices': VertexElementUsage.BLENDINDICES0, 'a_BoneWeights': VertexElementUsage.BLENDWEIGHT0, 'a_Position': VertexElementUsage.POSITION0, 'a_Normal': VertexElementUsage.NORMAL0, 'a_Texcoord': VertexElementUsa...
来源: Laya_示例 发布时间: 20241118