我来告诉你,
假如Document class是main.as, 另一个as文件是other.as(假定other.as是一个类文件)
两种方法,
1.用为参数传递,
在main.as里实例化other类,然后传stage到other内部。
class main
{
...
var o

ther = new other(stage);
...
}
2.将other继承某一个容器类
比如:
class other extends Sprite
{
...
public function other()
{
//这里不能使用stage属性
}
...
public function func()
{
var tw:Number = stage.stageWidth;
//这里就使用了stage属性,它指向Stage.
//而且stage属性不能在构造函数(other())里引用它,因为此类还没有实例化,它还没有被加到displaylist里面,
//所以,在构造函数里引用它时,为null值,只能在此类的其它方法(并且此方法不被构造函数直接调用)里引用它。
}
}
//实例化这个类后,再调用func方法
var o

ther = new other();
addChild(o);
o.func();