大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...00,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } private function onClick(event:Event):void{ Render._mainCanvas.source.style.left = "100px"; Render._mainCanvas.source.style.top = "100px"; trace("onClick"); } } } 就这么一段简单的代码,求指点怎么改变位置...
来源: Laya_社区 发布时间: 20171226
...7 核心代码 list.renderHandler = new Handler(this, this.updateItem) private updateItem(cell: Laya.box, index:number):void {let name = Item.getchildByName("XXXX") as Labelname.chengText(list.array[index].name) } 2018-11-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...
来源: Laya_社区 发布时间: 20181121
...类然后写了 this.btn_fapai.on("click", this, this.fapai);、 private function fapai():void { this.btn_kaipai.visible=true; } 没效果啊 cuixueying • 2017-03-18 10:31 看下IDE自动生成的Demo,里面就有用到! h690759643 • 2017-03-18 11:44 谢谢已尽解决了
来源: Laya_社区 发布时间: 20170203
...载完成后,回调设置皮肤资源找不到_bitmap /** * @private * 设置皮肤资源。 */ protected setSource(url: string, img: any = null): void { if (url === this._skin && img) { this.sour...
来源: Laya_社区 发布时间: 20191024
...容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: private function test(e:Event):void{ e.target//是这样获取的 } 2017-10-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lbjryy 相关问题 Layaair IDE的帧...
来源: Laya_社区 发布时间: 20171015
2.0 的list问题 /** 初始化坑位 */ private initCellList(): void { this.cellList.itemRender = CellItem; this.cellList.vScrollBarSkin = ""; this.cellList.repeatX = BattleMgr.Ins.Model.crosCel; this.cellList.repeatY = BattleMgr.Ins.Model.maxCell / BattleMgr.Ins.Model.crosCel; this.cellList.array...
来源: Laya_社区 发布时间: 20181221
...: iphone 6s qq中打开 webgl 问题已解决 直接贴代码了 private static function _stageOnFocus():void { _isActive = true; Laya.stage.off(Event.MOUSE_DOWN, null, _stageOnFocus); if (_blurPaused) { if (_tMusic) { playMusic(_tMusic, _musicLoops, _musicCompleteHandler, _musicPosition);...
来源: Laya_社区 发布时间: 20171019
....7},200) .addLabel("C",0).to(sp,{scaleY:1},200); timeLine.play(0,false); } private function onLabel(text:String):void { trace(text); }应该是你的代码有问题,以上是我的测试例子,没有出现重复执行的问题,请测试。 注意,label事件的触发是在动画运行之后...
来源: Laya_社区 发布时间: 20161229
...?下面是C#代码 public class Class1<T> where T : class, new() { private static T instance; public static T GetInstence() { if (null == instance) { instance = new T(); } return instance; } } 这样我在其他地方,继承Class1,就可以直接类名.GetInstence()获取该类的实例 ...
来源: Laya_社区 发布时间: 20180619
...n.to(letterText, { y : endY }, 1000, Ease.elasticOut, null, i * 1000); } } private function createLetter(char:String):Text { var letter:Text = new Text(); letter.text = char; letter.color = "#FFFFFF"; letter.font = "Impact"; letter.fontSize = 110; Laya.stage.addChild(letter); return letter; } } }
来源: Laya2.0_示例 发布时间: 20251209