大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...var ws = new WebSocket("wss://login.huanxi.twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("accpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; &...
来源: Laya_社区 发布时间: 20181018
...events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():v...
来源: Laya_社区 发布时间: 20161215
...)update { NSLog(@"----------------------%s----------------------", __FUNCTION__); } //------------------------------------------------------------------------------ - (void)glkView:(GLKView *)view drawInRect:(CGRect)rect { //conchRuntime renderFrame [self.m_pConchRuntime r...
来源: Laya_社区 发布时间: 20190510
...eMessage({xx:123}) 给加速器发消息 window.addEventListener("message",function(e){alert(e.data)}) 监听加速器发来的消息 conch: window.postMessage({jj:123}); 给iframe发消息 window.addEventListener("message",function(e){alert(e.data)}) 监听iframe发来的消息 2018-03-05 0...
来源: Laya_社区 发布时间: 20180305
...: 1058 关注: 2 人 deng2017 • 2017-06-20 14:30 package view { public function alertpp():void { } } 使用flash develop 编译 生成不了该代码 view.alertpp=function(){} cuixueying • 2017-06-20 15:20 不建议这么去写代码,容易出问题,最好还是按照正常的函数写法来...
来源: Laya_社区 发布时间: 20170620
...: 2017-05-16 10:17 浏览: 2328 关注: 2 人 Y_Yao • 2017-05-16 10:26 function daoju() { daoju.super(this); this.Tab_ZM.selectHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLIC...
来源: Laya_社区 发布时间: 20170516
...换为webgl 部分机型下会出现 this._gl.createVertexArray is not a function. (In 'this._gl.createVertexArray()', 'this._gl.createVertexArray' is undefined);at requestAnimationFrame callback function 这种情况这边判断是不支持webgl2,是否又方法直接判断手机是否支持we...
来源: Laya_社区 发布时间: 20200921
...ite_NodeControl { private var ape1:Sprite; private var ape2:Sprite; public function Sprite_NodeControl() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage...
来源: Laya2.0_示例 发布时间: 20260303
...重复 报错 Laya的标识符重复 运行没有问题 求解 代码: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var animation =Laya.Animation; (function() { // 不支持WebGL时自动切换至Canvas ...
来源: Laya_社区 发布时间: 20161230
... Uncaught TypeError: Cannot read property 'mesh' of undefined at Function._getSprite3DHierarchyInnerUrls (laya.d3.js:31405) at Function._getSprite3DHierarchyInnerUrls (laya.d3.js:31462) at Loader._onHierarchylhLoaded (laya.d3.js:31477) at EventHandler.runWith (laya.core.js...
来源: Laya_社区 发布时间: 20200518