AS2 继承

GBase.as

import mx.utils.Delegate;

/**
 * 元件基类
 * @author Wwx
 */	
class com.GBase
{
	public function GBaseA(){
		trace("GBase GBaseA");
	}
}

GBaseJichen.as

import mx.utils.Delegate;
import com.GBase;
/**
 * 元件基类
 * @author Wwx
 */	
class com.GBaseJichen extends GBase
{
	public function chenckOk(){
		GBaseA();
	}
}

Main_DT.as

import mx.utils.Delegate;
import com.GBaseJichen;

new GBaseJichen().chenckOk();

trace(this["excute_mc"]._quality);

  

链接:https://pan.baidu.com/s/1cDxci3o9O1ImH_0_WEq5qg
提取码:dudw 

原文地址:https://www.cnblogs.com/dt1991/p/11882932.html