大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0087 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图片资源,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas ...
来源: Laya_社区 发布时间: 20171211
... private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎么回事...
来源: Laya_社区 发布时间: 20170412
...99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert("My Name is Bear" + no); return; }) }); mallLayer._childs[0].addChild(flower); } 2017-01-1...
来源: Laya_社区 发布时间: 20170110
... "res/img.byte"; Laya.loader.load(url, Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void { var buffer:ArrayBuffer = Laya.loader.getRes(url); var byte:Byte = new Byte(buff...
来源: Laya_社区 发布时间: 20170417
...a.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.text.font = "Impact";...
来源: Laya3.0_文档 发布时间: 20251010
...藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInputting()) Input["inputElement"].target.focus = false; } else { _isVisibility = true; } _this.event(Event.VISIBILITY_CHANGE); }); public static var isStopLoop:Boolean = false; /**@private */ public function _l...
来源: Laya_社区 发布时间: 20171011
...现渐变填充对象呀? 请问LayaAir如何绘制一个渐变矩形? this.graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图...
来源: Laya_社区 发布时间: 20180904
... ]; Laya.loader.load(resArray, Laya.Handler.create(this, () => { this.OnLoaded() }), null, Laya.Loader.ATLAS); }在IOS部分机型,如苹果8上,会出现资源加载出错,截图如附件一所示。 Load(): void { var resArray: Array<any&g...
来源: Laya_社区 发布时间: 20191030
... ]; Laya.loader.load(resArr,Handler.create(this,this.onLoaded)); } private function onLoaded():void{ //显示界面 var gameView:GameView = new GameView(); Laya.stag...
来源: Laya_社区 发布时间: 20180106
...放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就是播放...
来源: Laya_社区 发布时间: 20170330