我想将主类中的构造函数的值传递给另一个类。
主类:
public function Main() {
Snap.locationX = 350;
}
另一类:
public function get locationX():Number{
return _value;
}
public function set locationX(x:Number):void{
_value = x;
}
它返回1061: Call to a possibly undefined method locationX through a reference with static type Class.
我究竟做错了什么?