大约有 465 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(280) Laya3.0_api(78) Laya2.0_文档(56) Laya2.0_示例(22) Laya_示例(20) Laya3.0_文档(7) laya_api(1) Laya2.0_api(1)
使用Tween.to完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void { this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景...
来源: Laya_社区 发布时间: 20170426
...public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite();...
来源: Laya_社区 发布时间: 20170918
...一直处于按下状态 var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new My...
来源: Laya_社区 发布时间: 20160722
...escript class PanelTest { constructor() { //初始化引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加...
来源: Laya2.0_文档 发布时间: 20210715
...ogLevelEnum{ ALL = -0xFFFFFFFF, TRACE = 0, DEBUG = 200, INFO = 400, WARN = 600, ERROR = 800, FATAL = 1000, OFF = 0xFFFFFFFF }class Logger { public static logLevel: number = LogLevelEnum.ALL; // 获取或设置日志输出的分级 }编译运行会报错。 可行的办法是改成getter去懒初始...
来源: Laya_社区 发布时间: 20171107
..., _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotati...
来源: Laya_社区 发布时间: 20180315
...o', 'enenen'); }); }); </script> </html> laya的 Laya.init(800,600,Laya.WebGL); // var socket = io.connect('10.10.1.103:8081'); this.byte = new Laya.Byte(); this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立...
来源: Laya_社区 发布时间: 20181107
... mArmature.play(0,true); Laya.stage.addChild(mArmature); mArmature.pos(300,600); var rect:Rectangle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick); 2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 : ...
来源: Laya_社区 发布时间: 20161122
...r = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; Laya.init(1024, 600,WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["./comp/progress.png", "./comp/progress...
来源: Laya_社区 发布时间: 20171230
...初始化引擎 Laya.init(600, 400,WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; ...
来源: Laya_社区 发布时间: 20180725