大约有 17 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
Sprite optimizeScrollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = tr...
来源: Laya_社区 发布时间: 20161118
...emo一模一样。。。 // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); t...
来源: Laya_社区 发布时间: 20180731
... 设置panel.vscrollBar.value=panel.vscrollBar.max 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img...
来源: Laya_社区 发布时间: 20161103
...,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
怎么使用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
...,还不准确,但是log出的box单元格是同一个 localToGlobal: function (ele, flag) { var point = new laya.maths.Point(ele.pivotX, ele.pivotY); // flag = flag ? true : false; return ele.localToGlobal(point, flag); } console.log(box); var targetXY = Utils.localToG...
来源: Laya_社区 发布时间: 20171102
...this, this.updateList); ActivityXXXXXUI.prototype.updateList = function(cell, index) { var info = cell.dataSource; var img_icon = cell.getChildByName("img_icon");//图标 var lab_name = cell.getChildByName("lab_name");//名称 } itemH...
来源: Laya_社区 发布时间: 20170808
...ight:Number; private var _oldY:Number; private function onMuseHandler(type:Event,index:int):void { trace("type:" + type.type + "ddd--" + _list.scrollBar.value + "---index:" + index); var curX:Number,curY:Number; ...
来源: Laya_社区 发布时间: 20171204
...se.linearIn) } } timeline.play(0, true); timeline.on(Event.COMPLETE, this, function () { count++; if (count === 2) { timeline.destroy(); count = 0; } });为什么在结束的时候,会报下面的错误呢? 附件 : --> 2017-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170405
...悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this....
来源: Laya_社区 发布时间: 20161115