API Docs for: 1.10.1 最后更新日期:2016年03月28日
Google搜索   
Show:

LTransform Class

Extends LObject
Defined in: geom/LTransform.js:1

Available since 1.9.8

利用 LTransform 类,可以访问可应用于显示对象的二维转换对象。 要应用二维转换,请执行下列操作:创建一个 LMatrix 对象,并设置该矩阵的二维转换,然后将显示对象的 transform.matrix 属性分配给新的 LMatrix 对象。

Constructor

LTransform

() public

Defined in geom/LTransform.js:1

Available since 1.9.8

Item Index

Methods

Properties

Methods

callParent

(
  • functionName
  • arguments
)
public

Inherited from LObject: utils/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

Inherited from LObject: utils/LObject.js:11

Available since 1.6.0

对象的ID