大约有 576 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0063 秒)
Laya_社区(350) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...class A { protected _id:number = 1; public get id():number { return this._id } public set id(value:number){ this._id = vaule; } } class B extends A { public set id(value:number){ this._id = value + 1; } } class C extends A { public get id():number { return this._id } ...
来源: Laya_社区 发布时间: 20161109
...tion Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.connectByUrl(url); } public function Add(handler:IHandl...
来源: Laya_社区 发布时间: 20170724
...om/'>LayaBox欢迎你的加入!</span>"; div.on(Laya.Event.LINK,this,(data:any)=>{ Laya.Browser.window.location.href=data; }); Laya.stage.addChild(div); 运行效果: 点击文字链接可以打开浏览器访问网址 3.6 实现html页面跳转 示例如下: var iHtml:HTMLIframeEl...
来源: Laya3.0_文档 发布时间: 20230303
... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...
来源: Laya3.0_api 发布时间: 20231102
... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...
来源: Laya3.0_api 发布时间: 20231102
...e/clip_tree_arrow.png" ]; //加载资源 Laya.loader.load(res, new Handler(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { // 组装tree的数据 var treeData:String = ""; //外层循环为树的父节点(相当于文件夹) for(var i:int = 0...
来源: Laya2.0_文档 发布时间: 20210715
...用webview加载的本地html5,webview的官网api有这样一句话:This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages 。原来webview也相当于一个浏览...
来源: Laya_社区 发布时间: 20160104
...t(0, 0); //定义一个命名空间的属性为app; Browser.window.app = this; } public static function getGameName():String { return "myGame"; } public function getVersion():String { return "1.2.0"; } } } ``` 编译运行,打开浏览器控制台,先后输入`app`、`app.name`、`app.getV...
来源: Laya2.0_文档 发布时间: 20210715
...onfigEventDispatcher.getInstance().on(ConfigEventDispatcher.CFG_PARSE_COM, this, parseCfgCom); // 解析游戏配置表数据 ConfigMgr.dataInfoComplete(); } ConfigMgr.dataInfoComplete(); 里面有许多异步 这步卡住了 IDE运行没问题 layaTest9.zip 2018-02-08 0 0 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20180205
...事件监听方式和Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是...
来源: Laya3.0_文档 发布时间: 20251010