API Docs for: 最后更新日期:2014年8月25日
Google搜索   
Show:

LObject Class

Defined in: main/LObject.js:1

Available since 1.6.0

LObject クラスは、lufylegend.js クラス階層のルートにあります。

Constructor

LObject

() public

Defined in main/LObject.js:1

Available since 1.6.0

Item Index

Methods

Properties

Methods

callParent

(
  • functionName
  • arguments
)
public

Defined in main/LObject.js:22

Available since 1.6.0

親クラスの関数を呼び出す。

Parameters:

  • functionName String

    函数名

  • arguments Array

    固定値arguments

Example:

function funA(){
    LExtends(this,LObject,[]);
}
funA.prototype.myName = function(){
    return "AAA";
}
function funB(){
    LExtends(this,funA,[]);
}
funB.prototype.myName = function(){
    return "BBB";
}
function funC(){
    LExtends(this,funA,[]);
}
funC.prototype.myName = function(){
    return this.callParent("myName",arguments);
}
LInit(1000/50,"legend",800,150,main);
function main(){
    LGlobal.setDebug(true);
    var objB = new funB();
    trace(objB.myName());//BBB
    var objC = new funC();
    trace(objC.myName());//AAA
}

Properties

objectIndex

Int public

Defined in main/LObject.js:11

Available since 1.6.0

オブジェクトのID