I am trying to change a static variable in a class constructor. In the beginning I:
public static var mainReference:Main; public static var timerReference:Timer; public var timer:Timer = new Timer(1000);
This means that my static functions have access to the main and timer. I have the main constructor:
mainReference = this; timerReference = timer;
The problem is that the first does not give compilation errors, but the second tells me access to the undefined (timerReference) property.
source share