大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0169 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...微信开发者工具里会报错(intermediate value)(...) is not a function 向下面这种形式的封装,可以前后都加个分号 ;(function(){ })(); 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20180502
...(); this.SceneMajor.addChild(gameOver); gameOver.btRetry.on('click', this, function(){ window.location.reload(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Ha...
来源: Laya_社区 发布时间: 20180116
设置fontSize的时候没做类型转换 __getset(0,__proto,'fontSize',function(){ return this._fontSize; },function(value){ if (this._fontSize !=value){ this._fontSize=value; this.isChanged=true; } }); 如果设置fontSize="30",没有做类型转换,后面所有通过fontSize参与的加法...
来源: Laya_社区 发布时间: 20181204
...一个函数,通过传参的方式改变文本html的不同样式 public function setUp():void { var html:HTMLDivElement=new HTMLDivElement(); html.width=500; html.height=500; changeHtml('#0000FF',"哈哈哈哈哈",html); Laya.stage.addChild(html); } private function changeHtml(color:String,text:S...
来源: Laya_社区 发布时间: 20170413
...ng,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg.groups; RES.resources = arg.resources; RES.getInstance().event(RES.ONLOADEDRESJSON,arg); }else{ RES.getInstance().event(RES.ONLOADERRORRESJSON,arg); } })) } /** * groupName 资源...
来源: Laya_社区 发布时间: 20161011
怎么使用http请求 httpRequest: function (url, data) { var xhr = cc.loader.getXMLHttpRequest(); if (!xhr.onreadystatechange) { xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.respons...
来源: Laya_社区 发布时间: 20180807
...Loader; import laya.utils.Handler; public class Animation_Example { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation...
来源: Laya3.0_api 发布时间: 20231115
... Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) let mainSound:Laya.SoundChannel = null; this.btn_sound.on(Laya.Event.CLICK,...
来源: Laya_社区 发布时间: 20190716
...,OnAnimation()); function OnAnimation():void{ _gameTableScene["donghua"+ transformToDesignIndex(msg.index)].visible =false; _gameTableScene["donghua"+ tran...
来源: Laya_社区 发布时间: 20180323
...的链接 提交 1 个回复 cuixueying 赞同来自: 请参考:public function LayaAirDemo() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Laya.timer.once(500,this,onLoop); Stat.show(); } private function onLoop():void { __JS__('var LayaCanvas1=document.getEle...
来源: Laya_社区 发布时间: 20170421