Ich möchte Wert von Konstruktor in meiner Hauptklasse in eine andere Klasse übergeben.Actionscript 3.0 Setter - Getter
Hauptklasse:
public function Main() {
Snap.locationX = 350;
}
Eine andere Klasse:
public function get locationX():Number{
return _value;
}
public function set locationX(x:Number):void{
_value = x;
}
Es gibt 1061: Call to a possibly undefined method locationX through a reference with static type Class.
Was mache ich falsch?
Dank. Du würdest nicht glauben, wie oft ich mich auf Instanzmethoden gefaßt habe. Prost –