• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)

811. 为什么List中的tweenTo问题 [ 56%]

... = [obj1,obj2,obj3]; list.selectHandler = new Handler(this,onListSelected) private function onListSelected(cell:View,index:uint):void{ list.tweenTo(index,5000);//也就是这里没有效果 } wudi199553 • 2017-10-20 16:27 把你的 Demo发过来,光看这个看不出来的

来源: Laya_社区 发布时间: 20171020

812. LayaAir项目发布Flash版本 报错 [ 56%]

...ndow:Function = function():* { return __JS__('window'); } package { /** * @private */ public function __JS__(value:*):* { return null; } } 这是不再支持转flash版本的意思吗 2017-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

来源: Laya_社区 发布时间: 20170410

813. 缓动-逐字缓动 [ 56%]

...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; } } }

来源: Laya_示例 发布时间: 20260303

814. 改变位置后,点击区域不生效了 [ 56%]

...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

815. 2.0 根据预制体建List的itemRender [ 56%]

...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

816. 怎么调用UI界面的属性 [ 56%]

...类然后写了 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

817. Image设置skin的Bug [ 56%]

...载完成后,回调设置皮肤资源找不到_bitmap /**      * @private      * 设置皮肤资源。      */     protected setSource(url: string, img: any = null): void {         if (url === this._skin && img) {             this.sour...

来源: Laya_社区 发布时间: 20191024

818. Event类中的target属性IDE返回值为什么和文档不一样 [ 56%]

...容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: private function test(e:Event):void{ e.target//是这样获取的 } 2017-10-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lbjryy 相关问题 Layaair IDE的帧...

来源: Laya_社区 发布时间: 20171015

819. 2.0 的list问题 [ 56%]

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

820. 接听电话后,播放音效无反应,播放音乐可以 [ 56%]

...: 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