class - Actionscript 3.0 Setter - Getter -
I want to pass value from constructor to another class in my main square.
Main category:
public function main () {Snap.locationX = 350; }
Other class:
get the public function to the location X (): number {return_value; } Set public function Location X (x: number): zero {_value = x; }
It returns 1061: Call the location X possibly to the undefined method through the context of a fixed type square.
What am I doing?
The setter and geaster methods you have defined above are the methods of Instance. Calling Snap.locationX and not on an example of snap class.
Try (under Main ()):
var snap oz: snap = new snap (); SnapObj.locationX = ...
Comments
Post a Comment