大约有 68 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...te(useFrame: boolean, repeat: boolean, delay: number, caller: any, method: Function, args: Array<any>, coverBefore: boolean): void; /** * 定时执行一次。 * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param a...
来源: Laya_社区 发布时间: 20171109
求HTTP相关的文档或者例子谢谢了 __proto__.wishComp=function(e){} __proto__.checkList=function(){ this.publicloader=new URLLoader(); this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables"; ...
来源: Laya_社区 发布时间: 20151217
...的位置提醒开发者啊。package { public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var func:Function = new A().method; func(); } } } package { public class A { private var _attr:int = 123; public function A() { } public function method():void { t...
来源: Laya_社区 发布时间: 20161213
... sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]); 为什么不能把Laya.Hander.create后面带的这个参数传到Function里面? 附件 : --> 2018-06-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180621
...建的handler实例。 */ public static function create(caller:*, method:Function, args:Array = null, once:Boolean = true):Handler { if (_pool.length) return _pool.pop().setTo(caller, method, args, once); return new Han...
来源: Laya_社区 发布时间: 20180704
...明根本原因并修复 if (listener) { if(!(listener.method instanceof Function)&& listener.caller instanceof Function){ listener.method = listener.caller; } (data != null) ? listener.runWith(data) : listener.run(); } 2017-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170120
...内容相关的链接 提交 1 个回复 cuixueying 赞同来自: public function TestView() { var arr:Array=; for(var i:int=0;i<10;i++) { arr.push({my_clip:i}); } my_list.array=arr; my_list.renderHandler=new Handler(this,onRender); } private function onRender(cell:Box,index:int):void { // TODO A...
来源: Laya_社区 发布时间: 20161030
...:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * ...
来源: Laya_社区 发布时间: 20171129
...ya.core.js中HttpRequest的bug报告 var HttpRequest { ...... __proto.send=function(url,data,method,responseType,headers){ (method)&& (method="get"); 应该是(method===void 0)&& (method="get"); 否则无法使用post ...... } ...... } 2016-12-01 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20161201
...的Handler。 比如我们使用Timer loop(delay:number,caller:any,method:Function,args?:any[],coverBefore?:boolean,jumpFrame?:boolean):void;这个函数开启一个游戏主循环,这是如果caller.$_GID是1,method.$_TID是500000,那么this._map会存入一个500001的一个key进入,随...
来源: Laya_社区 发布时间: 20210701