大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...nce(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left ="100px"; iframe.styl...
来源: Laya_社区 发布时间: 20180223
...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 如何清除sharedCanvas上一次绘制的内容 list随机生成图片优化 场景切换造成的FPS下降的优化思路请教 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数...
来源: Laya_社区 发布时间: 20170102
...写的onloaded方法原型: protected function onLoaded(data:* = null):void 默认值允许为null. 但方法内又没有对data进行null值检测,所以各种报错,没有引发加载事件而是JS各种错。 找出的问题,麻烦改一下吧。 附件 : --> 2019-07-09 添加评论 ...
来源: Laya_社区 发布时间: 20190709
...er.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeattack/2.png"], "aa") Animation.createFrames(["monsterbeattack/0.png","monsterbeattack/1.png","monsterbe...
来源: Laya_社区 发布时间: 20170220
...是一闪一闪的 没有一直显示啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hb...
来源: Laya_社区 发布时间: 20180615
...nin.autoPlay=false; anin.interval=interval; private function onloaded():void { anin.pivotX=anin.getBounds().width/2; anin.pivotY=anin.getBounds().height/2; } 如上:动画加载成功后设置的描点,在电脑上运行正常,打包APK后到手机上运行,描点未生效,还是在...
来源: Laya_社区 发布时间: 20180806
...is.Repeat,null,true);这是加载资源的函数内的代码loadPosition():void{ /* let resArray:Array<any>=[ {url:"eyeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eye...
来源: Laya_社区 发布时间: 20171227
...消息时要先装到byte里再decode出来 private receiveHandler(msg): void { this.byte.clear() this.byte.writeArrayBuffer(msg) this.byte.pos = 0 let aMsg = msgScheme.AMsg.decode(this.byte.readUint8Array(0, 100000)) 2019-03-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20180320
...load(altsArr, Handler.create(this, onComplete)); function onComplete():void{ trace("加载完成"); } 2018-05-18 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 楼上的回答是正确的,关于重复过滤引擎是有判断的,你可以重复加载,如果已经加载过...
来源: Laya_社区 发布时间: 20180518
... public function set worldRoot(value:Sprite):void { _worldRoot = value; if (value) { //TODO: var p:Point = value.localToGlobal(Point.TEMP.setTo(0, 0)); ...
来源: Laya_社区 发布时间: 20181122