大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...ew List(); list.arrar = [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
...d(["images/scrollbar.png","images/scrollbar$bar.png"], Laya.Handler.create(this, panelContent)); function panelContent() { panel = new _this.Panel(); panel.size(1081, 507); panel.pos(153, 141); panel.zOrder = 21; panel.vScrollBarSkin = 'images/scrollbar.png'; panel.vScrollBar.elasticDistance = 100; ...
来源: Laya_社区 发布时间: 20180331
...改Text.text在微信小程序上用iPhone打开出现闪屏 如题, this.myTest = new Laya.Text() this.myTest.pos(0, 0) this.myTest.size(100, 100) this.myTest.fontSize = 13 this.myTest.color = "#ffffff" this.myTest.align = "center" this.addChild(this.myTest) this.timer.loop(10, this, this.timer...
来源: Laya_社区 发布时间: 20190129
...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...
来源: Laya_社区 发布时间: 20240305
...QZONE 微信 l13273866189 赞同来自: _proto_.moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -th...
来源: Laya_社区 发布时间: 20171107
...e.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya...
来源: Laya_社区 发布时间: 20171106
...的不同,label才会改变颜色 开启stroke就会出现这种情况 this.label = new Label(); this.label.text = "王小二的摊位"; this.label.fontSize = 15; this.label.color = "#7CFC00"; this.lab...
来源: Laya_社区 发布时间: 20190514
... Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 和 Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 都要删掉。 内涵tv何吓吓 • 2019-03...
来源: Laya_社区 发布时间: 20190305
...教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loade...
来源: Laya_社区 发布时间: 20180326
...id 0)&& (loop=true); (name===void 0)&& (name=""); if (name)this._setFramesFromCache(this._url+"#"+name); this._isPlaying=true; this.index=((typeof start=='string'))? this._getFrameByLabel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 && ...
来源: Laya_社区 发布时间: 20161006