大约有 51 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
... var sp:Sprite = new Sprite(); sp.loadImage(url); return sp; } bg和bg2一样大,bg盖在bg2上,无论对bg或者是bg2添加事件,都会触发监听。为什么...= =!懵了。 2016-12-23 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20161223
...der.onload=function () { this.headIcon.loadImage(this.result); 或者 this.headIcon.skin=this.result; } reader.readAsDataURL(file); } 2017-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170808
...{ let list = new Laya.Sprite(); list.width = 600 ; list.height = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray; La...
来源: Laya_社区 发布时间: 20190711
...FileReader.DONE==fileReader.readyState) { var sp:Sprite = new Sprite(); sp.loadImage(fileReader.result,0,0,100,100); Laya.stage.addChild(sp); } }; } } } 2018-05-29 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...
来源: Laya_社区 发布时间: 20180529
...Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this.animate); } private animate(e):void{ this.body.rotation += 10; } } class Main{ private ball:Ball; private target...
来源: Laya_社区 发布时间: 20171108
... sp = new Sprite(); sp.loadImage('./../img/psh_freq.png'); sp.pos(500, 400); sp.on("mousedown", this, callback); Laya.stage.addChild(sp); ...
来源: Laya_社区 发布时间: 20161128
...e); } function showProgress() { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); oncha...
来源: Laya_社区 发布时间: 20170701
..._NOSCALE; Laya.stage.bgColor = "#232628"; var img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.s...
来源: Laya_社区 发布时间: 20170427
...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多...
来源: laya_api 发布时间: 20170929
...lobalToLocal gotoAndStop hasHideFlag hasListener hitTestPoint isAncestorOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot play pos reCache removeChild removeChildAt removeChildByName removeChildren removeLabel remov...
来源: Laya3.0_api 发布时间: 20231115