大约有 432 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
...extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; } /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ this.__bindList.push(source); } this.addChild(source); this.ti...
来源: Laya_社区 发布时间: 20190805
...的时候,所有修改父类属性的代码必须写在父类构造函数super()的调用语句之后,否则修改属性的代码无效。以下是代码示例: 作为父类A.as的代码:package { import flash.display.Sprite; public class A extends Sprite { protected var data:String = "lay...
来源: Laya_社区 发布时间: 20151211
... 这是场景代码/* * 用户扑克界面; */ var Panel1 = (function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======...
来源: Laya_社区 发布时间: 20180130
...语言javascript,引擎1.7.8beta) var ServerListView = (function(_super){ function ServerListView(){ ServerListView.super(this); this.selectedIndex = -1; var data = ; //设置服务器列表项信息 for(var i=0;i<100;i++){ data = {select:{label:"服务器"+(i+1),selected:false}, flag:{tex...
来源: Laya_社区 发布时间: 20170805
...滑动旋转脚本 function ObjectRotate() { ObjectRotate.super(this);//这里不太清楚作用 //最终鼠标在X轴上的值 this.lastMouseX = NaN; //最终鼠标在Y轴上的值 this.lastMouseY = NaN; ...
来源: Laya_社区 发布时间: 20170810
...多个image,并为每个image添加监听事件? var Index=(function(_super){ function Index(){ Index.super(this); this.data = ["1tong","2tong","3tong","4tong","5tong","6tong","7tong","8tong","9tong","1tiao","2tiao","3tiao","4tiao","5tiao"]; var _dataSource_=[]; for(var i = 0;i<this.data.leng...
来源: Laya_社区 发布时间: 20170914
Dialog 关闭效果无效 代码如下: var CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCl...
来源: Laya_社区 发布时间: 20171107
...享 微博 QZONE 微信 apeCom 赞同来自: var Loading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfi...
来源: Laya_社区 发布时间: 20171107
...后子类B重写 public set a($value:number):void { this.aa(); super.a = $value; } private aa():void{} 但是super是不能用到set/get中的,所以报错了,如果用this替代super,那就死循环肯定不行 然后我看到Laya有提供个方法 Laya.superSet和Laya.superGet ...
来源: Laya_社区 发布时间: 20180305
...ge.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Backgroun...
来源: Laya_社区 发布时间: 20170420